xhprof_sample_enable> <xhprof_enable
Last updated: Fri, 24 Feb 2012

xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disableStops xhprof sample profiler

Descrição

array xhprof_sample_disable ( void )

Stops the sample mode xhprof profiler, and

Aviso

Esta função não está documentada; somente a lista de argumentos está disponível.

Parâmetros

Esta função não contém parâmetros.

Valor Retornado

An array of xhprof sample data, from the run.

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 irá imprimir algo similar a:

Array
(
    [1272935300.800000] => main()
    [1272935300.900000] => main()
)


User Contributed Notes
xhprof_sample_disable
There are no user contributed notes for this page.

xhprof_sample_enable> <xhprof_enable
Last updated: Fri, 24 Feb 2012