PHP Performance Optimization tool xhprof installation configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.