xhprof_sample_disable

(PECL xhprof >= 0.9.0)

xhprof_sample_disable停止 xhprof 锟斤拷锟杰诧拷锟斤拷锟斤拷锟斤拷锟斤拷

说锟斤拷

xhprof_sample_disable ( void ) : array

停止锟斤拷锟斤拷模式锟斤拷 xhprof 锟斤拷锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟斤拷锟斤拷锟叫碉拷xhprof锟斤拷锟斤拷锟斤拷锟捷o拷array 锟斤拷锟酵★拷

锟斤拷锟斤拷

Example #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()
)