oprofile 无法生成调用图

发布于 2024-09-02 17:48:51 字数 220 浏览 1 评论 0原文

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

C++ 代码使用 -fno- omit-frame-pointer 进行编译。 oprofile 以 --callgraph=25 开头。 报告我用 --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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月光色 2024-09-09 17:48:51

是否没有 opcontrol --status

Call-graph depth: 0

检查其输出中 。如果是,请停止分析,执行 opcontrol --callgraph=,然后重新启动分析。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文