XHPROF_SAMPLE_DISABLE(3) 1 XHPROF_SAMPLE_DISABLE(3)
xhprof_sample_disable - Stops xhprof sample profiler
SYNOPSIS
array xhprof_sample_disable (void )
DESCRIPTION
Stops the sample mode xhprof profiler, and
PARAMETERS
This function has no parameters.
RETURN VALUES
An array of xhprof sample data, from the run.
EXAMPLES
Example #1
xhprof_sample_disable(3) 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);
?>
The above example will output something similar to:
Array
(
[1272935300.800000] => main()
[1272935300.900000] => main()
)
PHP Documentation Group XHPROF_SAMPLE_DISABLE(3)