Xdebug调试PHP程序
利用Xdebug测试脚本执行时间使用Xdebug_time_index()来显示时间
测试脚本占用的内存:
xdebug_memory_usage()
xdebug还提供了一个xdebug_peak_memory_usage()来查看内存占用的峰值
测试代码中的不足:
就是我们在php.ini中加入的
xdebug.profiler_enable=on
xdebug.trace_output_dir="D:\Projects\xdebug"
xdebug.profiler_output_dir="D:\Projects\xdebug"
把分析的情况写入D:\Projects\xdebug
页:
[1]