oprofile无法产生调用图 [英] oprofile unable to produce call graph
本文介绍了oprofile无法产生调用图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用oprofile生成调用图。
编译器是g ++,平台是linux x86-64,链接器是gfortran
oprofile以--callgraph = 25开头。
report我使用--callgraph运行。
产生调用图,但它只包含自我时间,没有太大的用处
我缺少什么?
解决方案
检查 opcontrol - 状态
没有
调用图深度:0
在其输出中。如果是,停止分析,执行 opcontrol --callgraph =<期望的调用堆栈深度>
,然后重新开始分析。
I am trying to use oprofile to generate call graph. Compiler is g++, platform is linux x86-64, linker is gfortran
C++ code is compiled with -fno- omit-frame-pointer. oprofile is started with --callgraph=25. report I run with --callgraph.
the call graph is produced but it's only includes self time, which is not much use
what am I missing?
解决方案
Check if opcontrol --status
does not have
Call-graph depth: 0
in its output. If it does, stop profiling, do opcontrol --callgraph=<desired call stack depth>
, and restart profiling.
这篇关于oprofile无法产生调用图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文