本文共 833 字,大约阅读时间需要 2 分钟。
2015年11月27日 17:08:54
[xdebug];用触发的形式去开启跟踪调试 get/post/cookie 中添加变量"XDEBUG_TRACE"xdebug.auto_trace=0 ;关闭自动跟踪xdebug.trace_enable_trigger=1 ;开启触发性跟踪xdebug.trace_enable_trigger_value="start_trace" ;与此值相等就会触发跟踪, XDEBUG_TRACE=strat_tracexdebug.trace_format=0 ;肉眼可读的格式xdebug.trace_options=0 ;覆盖之前的trace, 1:追加xdebug.trace_output_dir=/...../xdebug/tracexdebug.trace_output_name=trace.%R;通过触发的形式去开启性能分析, get/post/cookie 中添加变量 "XDEBUG_PROFILE";以URI命名性能分析文件xdebug.profiler_enable=0 ;关闭自动分析xdebug.profiler_enable_trigger=1 ;开启触发性分析xdebug.profiler_enable_trigger_value="start_profiler" ;与此值相等就会触发分析, XDEBUG_PROFILE=start_profilerxdebug.profiler_output_dir=/...../xdebug/profilerxdebug.profiler_output_name=cachegrind.out.%Rxdebug.profiler_append=0;以肉眼可读的格式显示内存使用xdebug.show_mem_delta=1
参考:
注: time: 累计时间, Mem:内存, function: 调用函数名字, location: 调用函数所在行
转载地址:http://yqill.baihongyu.com/