xdebug性能分析工具配置文档


wget http://xdebug.org/files/xdebug-2.3.3.tgz
tar zvfx xdebug-2.3.3.tgz
cd xdebug-2.3.3
/usr/local/php-5.5.18/bin/phpize
./configure --with-php-config=/usr/local/php-5.5.18/bin/php-config
make
make install
cd ..
vim /usr/local/php-5.5.18/etc/php.ini
#----------------------------------------------
zend_extension=xdebug.so
xdebug.profiler_enable=on
xdebug.trace_output_dir="/data/logs/xdebug/"
xdebug.profiler_output_dir="/data/logs/xdebug/"
#----------------------------------------------

git clone https://github.com/jokkedk/webgrind.git

vim config.php
#------------------------------------------------------
static $storageDir = '/data/logs/xdebug';
static $profilerDir = '/data/logs/xdebug';
static $pythonExecutable = '/usr/bin/python';
static $dotExecutable = '/usr/bin/dot';
#------------------------------------------------------

安装图形绘制工具
yum install -y graphviz*

参考文档:http://blog.aboutc.net/profiling/18/php-profiler-xdebug-webgrind

posted @ 2015-08-06 16:22  study-notes  阅读(294)  评论(0编辑  收藏  举报