Xdebug与Xhprof [英] Xdebug vs xhprof

查看:137
本文介绍了Xdebug与Xhprof的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xdebug在我的php代码中分析多卷曲的使用,并且数字未加到总数上,所以我改用xhprof,它似乎提供了更好的数据.为什么xdebug提供看似不良的性能分析信息,并且有一种解决方法?我更喜欢使用xdebug的探查器,因为有更多的工具可以使用它.

I was using xdebug to profile the use of multi curl in my php code, and the numbers didn't add up to the total, so I used xhprof instead, which seemed to provide better data. Why is xdebug providing seemingly bad profiling info, and is there a way to work around it? I would prefer to use xdebug's profiler, as there are more tools for it.

推荐答案

Xdebug的探查器以略有不同的方式工作,因此得出不同的结果. (我也知道聚合数据时会出现一个小错误).我总是建议同时使用Xdebug和XHprof.

Xdebug's profiler works in a slightly different way and thus gives different results. (I also know there is a little bug in aggregating data). I would always suggest to use both Xdebug and XHprof.

这篇关于Xdebug与Xhprof的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆