xhprof_disable

(PECL xhprof >= 0.9.0)

xhprof_disable停止 xhprof 锟斤拷锟斤拷锟斤拷

说锟斤拷

xhprof_disable ( void ) : array

停止锟斤拷锟杰凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟截此达拷锟斤拷锟叫碉拷 xhprof 锟斤拷锟捷★拷

锟斤拷锟斤拷

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

锟斤拷锟斤拷值

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

锟斤拷锟斤拷

Example #1 xhprof_disable() 锟斤拷锟斤拷

<?php
xhprof_enable
();

$foo strlen("foo bar");

$xhprof_data xhprof_disable();

print_r($xhprof_data);
?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

Array
(
    [main()==>strlen] => Array
        (
            [ct] => 1
            [wt] => 279
        )

    [main()==>xhprof_disable] => Array
        (
            [ct] => 1
            [wt] => 9
        )

    [main()] => Array
        (
            [ct] => 1
            [wt] => 610
        )

)