xdebug除了调试程序外 , 还可以来检测程序的性能损耗点 , 展示成图表的形式

在php.ini中增加如下配置:

xdebug.profiler_output_dir=/tmp
xdebug.profiler_enable=1

 

访问程序后 , 会在tmp目录生成cachegrind.out.xxxx的文件 ,  把这个文件下载到我们windows系统上

下载个qcachegrind软件直接打开上面的cache文件,可以看到性能损耗和调用关系

https://sourceforge.net/projects/qcachegrindwin/

[PHP] 使用xdebug查看php的性能损耗

 

相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2022-01-07
  • 2021-11-19
  • 2021-11-05
  • 2021-06-23
  • 2021-12-28
  • 2021-04-12
猜你喜欢
  • 2021-09-01
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案