array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'function.xhprof-sample-disable.php', 1 => 'xhprof_sample_disable', ), 'up' => array ( 0 => 'ref.xhprof.php', 1 => 'Функции Xhprof', ), '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' => 'ru', '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 — Остановить сэмплирующие профилирование xhprof
У этой функции нет параметров.
Массив данных, собранный профайлером.
Пример #1 Пример использования xhprof_sample_disable()
<?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() )