array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.xhprof-disable.php', 1 => 'xhprof_disable', ), 'up' => array ( 0 => 'ref.xhprof.php', 1 => 'Xhprof Funktionen', ), 'prev' => array ( 0 => 'ref.xhprof.php', 1 => 'Xhprof Funktionen', ), 'next' => array ( 0 => 'function.xhprof-enable.php', 1 => 'xhprof_enable', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xhprof/functions/xhprof-disable.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL xhprof >= 0.9.0)
xhprof_disable — Stops xhprof profiler
Diese Funktion besitzt keine Parameter.
An array of xhprof data, from the run.
Beispiel #1 xhprof_disable() example
<?php
xhprof_enable();
$foo = strlen("foo bar");
$xhprof_data = xhprof_disable();
print_r($xhprof_data);
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array ( [main()==>strlen] => Array ( [ct] => 1 [wt] => 279 ) [main()==>xhprof_disable] => Array ( [ct] => 1 [wt] => 9 ) [main()] => Array ( [ct] => 1 [wt] => 610 ) )