Compiling installation configuration
wget http://pecl.php.net/get/xhprof-0.9.4.tgz
Tar zxvf xhprof-0.9.4.tgz
CD xhprof-0.9.4
CD extension/
/usr/bin/phpize
./configure
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install
Vim/usr/local/php/etc/php.ini
eof<<<
[Xhprof]
extension=xhprof.so;
Xhprof.output_dir=/home/wwwroot/iamle.com/xhprof
Eof
Mkdir-p/home/wwwroot/iamle.com/xhprof
Cd..
CP-RV examples/xhprof_html/xhprof_lib//home/wwwroot/iamle.com/xhprof
/ETC/INIT.D/PHP-FPM Reload
Example usage
http://localhost/xhprof/examples/sample.php
Http://localhost/xhprof/xhprof_html/index.php?run=5455f9208a2eb&source=xhprof_foo
Xhprof's explanation of the noun
Function name Function name
Calls number of calls
calls% percent call
incl. Wall time (MICROSEC) calls include child functions all spent in microseconds (one out of 10,000 seconds)
Iwall % of all spent time including child functions
Excl. Wall time (microsec) function to execute itself, excluding subtree execution time, in microseconds (one out of 10,000 seconds)
ewall% The percentage of time spent in the function execution itself, Does not include the amount of CPU time that is spent by the subtree execution time
incl. CPU (MICROSECS) calls that include child functions. Minus incl. Wall time is
minus excl when the CPU is waiting. Wall time is the
icpu% incl. CPU (MICROSECS)%
Excl. CPU (MICROSEC) function executes the CPU time that it spends, excluding subtree execution time, in microseconds (one out of 10,000 seconds). The percentage of
ecpu% excl. CPU (microsec)
Incl.memuse (bytes) includes the memory used by child functions.
imemuse% incl.memuse (bytes)%
Excl.memuse (bytes) function executes its own memory, in bytes
ememuse% excl.memuse (bytes)%
Peak
ipeakmemuse% incl.peakmemuse (bytes) Peak percentage of Incl.peakmemuse (bytes) incl.memuse
Excl.peakmemuse (bytes) Excl.memuse Peak
epeakmemuse% ememuse% peak percentage