[xdebug] ;断点调试 xdebug.remote_enable=On ;远程调试 xdebug.remote_autostart=On ;开启远程调试自动启动 xdebug.remote_host=192.168.33.1 xdebug.remote_port=9001 xdebug.auto_trace=on ;启用代码自动跟踪 xdebug.collect_vars=On ;收集变量 xdebug.collect_return=On ;收集返回值 xdebug.collect_params=On ;收集参数 xdebug.idekey=shijiebang xdebug.remote_log="/tmp/xdebug.log" ;性能分析 xdebug.profiler_enable=On ;启用性能检测分析 ;xdebug.trace_output_dir="/tmp/xdebug_profiler" ;指定堆栈跟踪文件的存放目录 xdebug.profiler_output_dir="/tmp/xdebug_profiler" ;指定性能分析文件的存放目录 xdebug.profiler_output_name="cachegrind.out.%p" xdebug.profiler_enable_trigger=1
xdebg官网:https://xdebug.org生成性能报告需要https://github.com/jokkedk/webgrind/https://github.com/jrfonseca/gprof2dot
gprof2dot安装yum install python3 graphvizyum 源没有3,特么的……,手动来吧……wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgztar -xzvf Python-3.3.0.tgzcd Python-3.3.0./configure --prefix=/usr/local/python3makemake install安装好之后要修改一下webgrind的配置文件,把python的路径修改一下,这样才能生成性能报告的那个图。