php使用xdebug性能分析

phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config
make
make install
1
 vim /usr/local/php/etc/php.ini
1
2
3
4
5
[Xdebug]
zend_extension=xdebug.so
xdebug.profiler_enable=on
xdebug.trace_output_dir="/root/tmp"
xdebug.profiler_output_dir="/root/tmp"
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
Licensed under CC BY-NC-SA 4.0