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

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-09-19
  • 2021-12-06
猜你喜欢
  • 2021-07-19
  • 2021-05-18
  • 2021-11-26
  • 2022-12-23
  • 2021-08-26
  • 2021-05-16
相关资源
相似解决方案