我正在尝试使用oprofile生成调用图。 编译器是g ++,平台是linux x86-64,链接器是gfortran
使用-fno- omit-frame-pointer编译C ++代码。 oprofile以--callgraph = 25开头。 报告我用--callgraph运行。
生成了调用图,但它只包含自我时间,这没什么用处
我错过了什么?
答案 0 :(得分:2)
检查opcontrol --status
是否没有
Call-graph depth: 0
在其输出中。如果是,请停止分析,执行opcontrol --callgraph=<desired call stack depth>
,然后重新启动分析。