xhprof_sample_disable
xhprof_sample_disable
Stops xhprof sample profiler
**xhprof_sample_disable**
Stops the sample mode xhprof profiler, and returns the profile info.
An of xhprof sample data, from the run.
Returns null if profiling is not enabled.
array
Voorbeeld: 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()
)