Changes between Version 31 and Version 32 of PhpTop


Ignore:
Timestamp:
Nov 13, 2009, 2:17:07 PM (11 years ago)
Author:
Vincent Caron
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PhpTop

    v31 v32  
    88'''phptop''' prints per query and average metrics comparable to the 'time' program or shell builtin: wallclock, user and system CPU time along with memory and other ressource usages.
    99
    10 It uses a a few lines of PHP with hook into your existing code without any changes, records per query statistics via the standard error log, then collects and prints reports with a standalone program. '''phptop''' itself is written in Perl and requires [http://search.cpan.org/~gaas/libwww-perl-5.833/ LWP].
     10It uses a a few lines of PHP which hook into your existing code without any changes, records per query statistics via the standard error log, then collects and prints reports with a standalone program. '''phptop''' itself is written in Perl and requires [http://search.cpan.org/~gaas/libwww-perl-5.833/ LWP].
    1111
    1212'''phptop''' is licensed under the [http://www.gnu.org/licenses/gpl.html GNU GPL 3.0].
     
    2525Wait a few minutes to collect enough data then run '''phptop'''.
    2626
    27 '''phptop''' expects that PHP standard error is logged to your web server error log files (or at least via any logging mechanism). This should be the case on any sane LAMP setup, otherwise you are strongly advised to fix it (use {{{log_errors=on}}} in your php.ini).
     27'''phptop''' expects that PHP standard error is logged to your web server error log files (or at least via any logging mechanism). This should be the case on any sane LAMP setup, otherwise we suggest you fix it with {{{log_errors=on}}} in your php.ini.
    2828
    2929
     
    5757'''phptop''' works with the regular embedded module and the CGI/FastCGI mode. There is currently no way to distinguish those different PHP calling contexts (also known as SAPI's).
    5858
    59 The CPU user and system time are collected with the [http://www.opengroup.org/onlinepubs/000095399/functions/getrusage.html getrusage] system call, with exclusion of child processes (thus forks, shell_exec and such are not accounted). The precision in Linux is limited by the kernel scheduler frequency: mostly 100Hz with 2.4 series (10ms precision) and 250Hz with 2.6 series (4ms precision). '''phptop''' is not a tracing or debugging tool, it is used to drill down among expensive queries and 10ms precision is considered sufficient for its goal.
     59The CPU user and system time are collected with the [http://www.opengroup.org/onlinepubs/000095399/functions/getrusage.html getrusage] system call, with exclusion of child processes (thus forks, shell_exec and such are not accounted). The precision with Linux is limited by the kernel scheduler frequency: mostly 100Hz with 2.4 series (10ms precision) and 250Hz with 2.6 series (4ms precision). '''phptop''' is not a tracing or debugging tool, it is used to drill down among expensive queries and 10ms precision is considered sufficient for its goal. Other kernels than Linux have not been tested.