downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

xhprof_enable> <Xhprof 関数
[edit] Last updated: Fri, 25 May 2012

view this page in

xhprof_disable

(PECL xhprof >= 0.9.0)

xhprof_disableStops xhprof profiler

説明

array xhprof_disable ( void )

Stops the profiler, and returns xhprof data from the run.

パラメータ

この関数にはパラメータはありません。

返り値

An array of xhprof data, from the run.

例1 xhprof_disable() example

<?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
        )

)


add a note add a note User Contributed Notes xhprof_disable
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites