xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disableStops xhprof sample profiler

Descrição

xhprof_sample_disable(): ?array

Stops the sample mode xhprof profiler, and returns the profile info.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

An array of xhprof sample data, from the run. Returns null if profiling is not enabled.

Exemplos

Exemplo #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);
?>

O exemplo acima produzirá algo semelhante a:

Array
(
    [1272935300.800000] => main()
    [1272935300.900000] => main()
)
adicione uma nota

Notas Enviadas por Usuários (em inglês)

Não há notas de usuários para esta página.
To Top