oprofile无法生成调用图

时间:2010-05-25 17:44:49

标签: performance profiling g++ oprofile

我正在尝试使用oprofile生成调用图。 编译器是g ++,平台是linux x86-64,链接器是gfortran

使用-fno- omit-frame-pointer编译C ++代码。 oprofile以--callgraph = 25开头。 报告我用--callgraph运行。

生成了调用图,但它只包含自我时间,这没什么用处

我错过了什么?

1 个答案:

答案 0 :(得分:2)

检查opcontrol --status是否没有

Call-graph depth: 0

在其输出中。如果是,请停止分析,执行opcontrol --callgraph=<desired call stack depth>,然后重新启动分析。