Xhprof 関数
PHP Manual

xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disableStops xhprof sample profiler

説明

array xhprof_sample_disable ( void )

Stops the sample mode xhprof profiler, and

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

この関数にはパラメータはありません。

返り値

An array of xhprof sample data, from the run.

例1 xhprof_sample_disable() example

<?php
xhprof_sample_enable
();

for (
$i 0$i <= 10000$i++) {
    
$a strlen($i);
    
$b $i $a;
    
$c rand();
}

$xhprof_data xhprof_sample_disable();

print_r($xhprof_data);
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [1272935300.800000] => main()
    [1272935300.900000] => main()
)

Xhprof 関数
PHP Manual