oprofile unable to produce call graph

百般思念 提交于 2019-12-23 23:15:10

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2907066/oprofile-unable-to-produce-call-graph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!