【发布时间】:2016-01-18 16:24:31
【问题描述】:
我已经设置了 xdebug 和 webgrind,并生成了几个分析文件。那些生成的文件存放在哪里?
【问题讨论】:
标签: php ubuntu profiling webgrind
我已经设置了 xdebug 和 webgrind,并生成了几个分析文件。那些生成的文件存放在哪里?
【问题讨论】:
标签: php ubuntu profiling webgrind
您可以设置 xdebug 在您活动的 php.ini 中保存分析活动的位置 (通常是 /etc/php5/apache2/php.ini)与
xdebug.remote_connect_back=1
xdebug.profiler_enable = 1
xdebug.profiler_output_name = xdebug.out.%t
xdebug.profiler_output_dir = /tmp
xdebug.profiler_enable_trigger = 1
同时设置文件名和文件夹(xdebug.out.%t 和 /tmp) 保存php.ini后别忘了重启apache
sudo service apache2 restart
【讨论】: