开发者

oprofile unable to produce call graph

开发者 https://www.devze.com 2022-12-31 08:53 出处:网络
I am trying to use oprofile to generate call graph. Compiler is g++, platform is linux x86-64, linker is gfortran

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消