如何从 gprof 输出中排除某些内容?

发布于 2024-09-03 02:21:59 字数 78 浏览 6 评论 0原文

我正在尝试分析我拥有的应用程序,但我不希望任何与 UI(用 wxWidgets 制作)相关的内容显示在 gprof 的调用图中等。我该怎么做?

I'm trying to profile an application I have, but I don't want anything related to the UI (made in wxWidgets) to show up in gprof's callgraph etc. How can I do this?

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

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

发布评论

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

评论(1

满天都是小星星 2024-09-10 02:21:59

来自 gprof 手册页:

   -E name
          suppresses the displaying of the graph profile entry for routine
          name  (and  its descendants) as -e, above, and also excludes the
          time spent in name (and its descendants) from the total and per-
          centage  time  computations.  (For example, -E mcount and all of
          the other monitor(3) routines are excluded by default.)

From the gprof man page:

   -E name
          suppresses the displaying of the graph profile entry for routine
          name  (and  its descendants) as -e, above, and also excludes the
          time spent in name (and its descendants) from the total and per-
          centage  time  computations.  (For example, -E mcount and all of
          the other monitor(3) routines are excluded by default.)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文