简体   繁体   English

kcachegrind很难链接php xdebug调用

[英]kcachegrind having difficulties to link php xdebug calls

I'm using XDebug to generate profile repport. 我正在使用XDebug生成配置文件支持。 The profile are generated, but I'm unable to create a complete call graph using kcachegraph. 生成配置文件,但我无法使用kcachegraph创建完整的调用图。

The XDebug config is: XDebug配置是:

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /var/www/xdebug/
xdebug.profiler_output_name = cachegrind.out.%t-%s
xdebug.profiler_enable_trigger=1

When I open the repport in kcachegrind, it seems to works, except that somt call seem in double, with one of the two having a location: (unknown). 当我在kcachegrind中打开支持时,它似乎有效,除了somt调用似乎是double,其中一个有一个位置:(未知)。

Note that index.php only have 1 line of actual code, that is a require to the front controller. 请注意,index.php只有1行实际代码,这是对前端控制器的要求。 No autoloading at this stage of the execution, so I really can't figure out why I have 2 require::frontcontroller.php. 在执行的这个阶段没有自动加载,所以我真的无法弄清楚为什么我有2个require :: frontcontroller.php。

Here's a screenshot of 3 windows that might help you: 这是一个可能对您有帮助的3个窗口的屏幕截图:
http://img46.imageshack.us/img46/2226/kcachegrind123.png http://img46.imageshack.us/img46/2226/kcachegrind123.png

Any clue on what could be the problem ? 什么可能是问题的任何线索?

Thanks 谢谢

Finally that's an XDebug problem with the profile. 最后,这是配置文件的XDebug问题。 It looks like Kcachegrind have changed their format, but XDebug have not been updated yet as per bug #639 . 看起来Kcachegrind已经改变了它们的格式,但XDebug还没有根据bug #639进行更新。

This is now fixed for 2.1.1 and HEAD. 现在已针对2.1.1和HEAD进行了修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM