(PECL xhprof >= 0.9.0)
xhprof_disable — Interrompe o perfilador xhprof
Esta função não possui parâmetros.
Um array de dados xhprof da execução.
Retorna null
se a perfilagem não estiver habilitada.
Exemplo #1 Exemplo de xhprof_disable()
<?php
xhprof_enable();
$foo = strlen("foo bar");
$xhprof_data = xhprof_disable();
print_r($xhprof_data);
?>
O exemplo acima produzirá algo semelhante a:
Array ( [main()==>strlen] => Array ( [ct] => 1 [wt] => 279 ) [main()==>xhprof_disable] => Array ( [ct] => 1 [wt] => 9 ) [main()] => Array ( [ct] => 1 [wt] => 610 ) )