array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.xhprof-sample-disable.php', 1 => 'xhprof_sample_disable', ), 'up' => array ( 0 => 'ref.xhprof.php', 1 => 'Xhprof Funktionen', ), 'prev' => array ( 0 => 'function.xhprof-enable.php', 1 => 'xhprof_enable', ), 'next' => array ( 0 => 'function.xhprof-sample-enable.php', 1 => 'xhprof_sample_enable', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xhprof/functions/xhprof-sample-disable.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL xhprof >= 0.9.0)
xhprof_sample_disable — Stops xhprof sample profiler
Diese Funktion besitzt keine Parameter.
An array of xhprof sample data, from the run.
Beispiel #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);
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array ( [1272935300.800000] => main() [1272935300.900000] => main() )