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 
posted on 2021-12-21 16:01  guanglixing16  阅读(31)  评论(0编辑  收藏  举报