问个xdebug+wincachegrind的问题

8 views
Skip to first unread message

任文越

unread,
Oct 22, 2009, 10:47:04 AM10/22/09
to cph...@googlegroups.com
查看时间消耗的时候, 总时间能显示出来

但是分解开的时候

有的步骤消耗时间显示为 -,不论self还是cumulative

这是因为消耗的时间太短还是根本就没记录消耗时间呢?

因为xdebug从2.0.0rc4开始,时间单位最小单位变化了(最小单位变成了1/1000 ms,纳秒级了都)

http://pecl.php.net/package-info.php?package=Xdebug&version=2.0.0RC4

Wed, May 17, 2007 - xdebug 2.0.0rc4

+ Changes:

- Use µ seconds instead of a tenths of µ seconds to avoid confusion in profile information.

而wincachegrind从05年之后就没更新过, 导致结果会相差10倍,高春辉弄了个打了补丁
的wincachegrind.exe (参见http://www.paulgao.com.cn/?itemid=134)

但是我2.0.4版本xdebug生成的profiling数据,用最新官方版的wincachegrind和高春辉
修改版的,查看结果都一样,这是为什么呢?

--
With Best Regards
suchasplus 任文越

Zhang Hongyin

unread,
Oct 22, 2009, 9:23:33 PM10/22/09
to cph...@googlegroups.com
我记得是差10倍的,只是我现在已经不用它了。
现在我们用xhprof来做性能监控了。

2009/10/22 任文越 <sucha...@gmail.com>
Reply all
Reply to author
Forward
0 new messages