Changes between Version 9 and Version 10 of PhpTop


Ignore:
Timestamp:
Oct 14, 2009, 1:56:46 PM (11 years ago)
Author:
Vincent Caron
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PhpTop

    v9 v10  
    4747
    4848Once the 'recorder hook' is installed, running '''phptop''' does not need specific privileges besides read access to the relevant web error log files.
     49
     50
     51== Notes ==
     52
     53'''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).
     54
     55There is support for PHP CLI, but [http://fr.php.net/manual/en/function.error-log.php error_log] does not actually log but prints to stderr. If you take care of redirecting your CLI invocations to a log file, '''phptop''' can work on it. Use either the shell construct {{{php script.php 2>>error.log}}} or either syslog with {{{php script.php 2>&1 | logger}}}.
     56
     57The 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.