有哪些PHP性能分析工具类似xhprof?
- 内容介绍
- 文章标签
- 相关推荐
本文共计340个文字,预计阅读时间需要2分钟。
使用php安装xhprof扩展(兼容php5和php7)的步骤如下:
1. 克隆xhprof项目:`git clone git@github.com:longxinH/xhprof.git`
2.进入xhprof目录:`cd xhprof`
3.使用phpize准备编译:`/usr/local/php7/bin/phpize`
4.配置编译参数:`. ./configure --with-php-config=/usr/local/php7/bin/php-config`
5.编译扩展:`make`
6.安装扩展:`sudo make install`
扩展编译安装完成。
本文共计340个文字,预计阅读时间需要2分钟。
使用php安装xhprof扩展(兼容php5和php7)的步骤如下:
1. 克隆xhprof项目:`git clone git@github.com:longxinH/xhprof.git`
2.进入xhprof目录:`cd xhprof`
3.使用phpize准备编译:`/usr/local/php7/bin/phpize`
4.配置编译参数:`. ./configure --with-php-config=/usr/local/php7/bin/php-config`
5.编译扩展:`make`
6.安装扩展:`sudo make install`
扩展编译安装完成。

