lenn0x / xhprof

XHProf: A Hierarchical Profiler for PHP

Home Page:http://pecl.php.net/package/xhprof

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For installation and usage notes refer to:
   xhprof_html/docs/index.html

To view the latest version of the doc, go to:
  http://pecl.php.net/package/xhprof ---> [View Documentation]


Example with extended info enabled
-----------------------------------

<?php
function foobar() {
  echo "hello world";
}

xhprof_enable(XHPROF_FLAGS_EXTENDED_INFO);
foobar();

$output = xhprof_disable();
print_r($output);

?>

Array
(
    [main()==>foobar] => Array
        (
            [ct] => 1
            [wt] => 9
            [pln] => 3
            [pfn] => /home/goffinet/test.php
            [calls] => Array
                (
                    [0] => Array
                        (
                            [fn] => /home/goffinet/test.php
                            [ln] => 7
                            [wt] => 9
                        )

                )

        )

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

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

)

About

XHProf: A Hierarchical Profiler for PHP

http://pecl.php.net/package/xhprof

License:Apache License 2.0


Languages

Language:PHP 47.3%Language:JavaScript 36.7%Language:C 16.0%