1, download the source package https://github.com/longxinH/xhprof (wget https://github.com/longxinH/xhprof/archive/master.zip) The following is the official website, There is no maintenance, no.
2. Compiling
3,./configure--with-php-config=/usr/local/php/bin/php-config
4. Make && make install
5, and then add in/etc/php.ini inside extension=xhprof.so
save exit. Done, the execution php-m can be viewed.
6. Move the previously downloaded expansion pack to the root directory of the Web site
Then direct access to the http://192.168.18.160/xhprof/examples/sample.php
After getting the red line painting, visit Http://192.168.18.160/xhprof/xhprof_html/index.php?run=5ac86cc0cec09&source=xhprof_foo directly
Then install the Yum install-y Graphviz
You can see the graphical interface by clicking on the arrow points.
Red represents long-running blocks of code
Http://192.168.18.160/xhprof/xhprof_html/index.php can view records of historical detections
PHP----------PHP installation xhprof extensions and easy to use