美文网首页
xhprof-PerfTool

xhprof-PerfTool

作者: MrBryan | 来源:发表于2020-11-04 17:55 被阅读0次

PHP程序分析

php代码的性能分析,推荐使用xhprof。

1、下载

 wget  http://pecl.php.net/get/xhprof-0.9.2.tgz 

2、解压到项目入口目录

 tar zxvf xhprof-0.9.2.tgz -C .
 mv xhprof-0.9.2  xhprof

开启xhprof,如果是PHP,修改php/etc/ext/xhprof.ini,并重启php-cgi:

 [xhprof]
 extension="xhprof.so"

3、graphviz 安装

wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gz
cd graphviz-2.24.0
./configure
make && make install
 
 
或者
yum install libpng
yum install graphviz

参考资料:
xhprof实战

相关文章

  • xhprof-PerfTool

    PHP程序分析 php代码的性能分析,推荐使用xhprof。 1、下载 2、解压到项目入口目录 开启xhprof,...

网友评论

      本文标题:xhprof-PerfTool

      本文链接:https://www.haomeiwen.com/subject/zongvktx.html