php - kcachegrind 难以链接 php xdebug 调用

标签 php xdebug kcachegrind

我正在使用 XDebug 生成配置文件报告。配置文件已生成,但我无法使用 kcachegraph 创建完整的调用图。

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

当我在 kcachegrind 中打开报告时,它似乎可以正常工作,除了 somt 调用似乎是双重的,其中一个有一个位置:(未知)。

请注意 index.php 只有 1 行实际代码,这是对前端 Controller 的要求。在这个执行阶段没有自动加载,所以我真的不明白为什么我有 2 个 require::frontcontroller.php。

以下是可能对您有所帮助的 3 个窗口的屏幕截图:
http://img46.imageshack.us/img46/2226/kcachegrind123.png

关于可能是什么问题的任何线索?

谢谢

最佳答案

最后,这是配置文件的 XDebug 问题。 看起来 Kcachegrind 已经改变了它们的格式,但是 XDebug 还没有根据错误更新 #639 .

现在已针对 2.1.1 和 HEAD 修复此问题。

关于php - kcachegrind 难以链接 php xdebug 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4971684/

相关文章:

javascript - 如何将 footer.tpl 添加到 .php 文件

php - 将额外的模板添加到右侧边栏 magento

php - 使用 Ratchet for PHP 通过 WebSocket 传输二进制数据

php - 如何配置 xdebug 来使用 https?

PHP调试环境不工作

valgrind - Kcachegrind/callgrind 对于调度程序功能不准确?

c++ - RHEL 5.1 的 kcachegrind

php - 如何在 PHP 中为今天的 MM/DD/YYYY 格式创建一个变量?

php - 为 PHP CLI 安装 Xdebug

profiling - Callgrind 配置文件格式包含/自费