【发布时间】:2014-07-10 06:29:43
【问题描述】:
谁能告诉我如何对 kcachegrind 的结果感兴趣。
我有两个版本的代码(v1、v2)都在调试模式下编译。我通过带有选项的 valgrind 运行它们:
valgrind --tool=callgrind -v ....
由此生成的输出文件在 kcachegrind 中打开。现在我已经发现代码的 v2 版本比第一个版本 v1 运行得更快。但是我如何从 kcachegrind 的调用图中获取结果。
在 kcachegrind All Callers 选项卡中,我有以下列:Incl. , Distance, Called, Caller。
IIUC、Called 和 caller 是程序中调用“调用者”的次数。但我不知道其他人。
另一件事是在选择特定函数时
“呼叫者”选项卡显示了更多信息。 Ir, Ir per call, count, caller
并在类型选项卡中:`EventType,Incl。自我,简短,公式。
我在这里没有任何想法。
到目前为止,我已经阅读了这些问题:
KCachegrind interpretation confusion Confused about profiling result
【问题讨论】:
标签: c++ profiling valgrind kcachegrind callgrind