xhprof php7.x安装

1. git clone https://github.com/longxinH/xhprof
2.
cd xhprof/extension/
3.
phpize
4
. ./configure
5.
make && make install
6.
[xhprof] extension=xhprof.so xhprof.output_dir=/data/www/xhprof/save_output_dir
7. brew services restart php@7.1
8.
php -m | grep xhprof
[xhprof]
extension=xhprof.so
xhprof.output_dir=/data/www/xhprof/save_output_dir 
原文地址:https://www.cnblogs.com/renren/p/15715733.html