gprof symspec 包括 C++类函数
我正在尝试分析大型 C++ 程序的特定部分。我正在使用 gprof 和 Gprof2Dot 生成漂亮的图表。但是,我想从图中排除某些启动函数。
我认为我应该能够运行 gprof -Qclass::init 来抑制 class::init 及其所有子级,但这似乎不起作用。事实上,我无法让任何包含“::”的“symspec”工作。不过,-Qmain 按我的预期工作。
需要使用哪些技巧才能让 gprof 包含/排除带“::”的函数名称?
I'm trying to profile a particular portion of a large C++ program. I am using gprof and Gprof2Dot to generate nice graphs. However, I would like to exclude certain startup functions from the graph.
I thought I should be able to run gprof -Qclass::init to supress class::init and all its children, but that doesn't seem to be working. In fact, I can't get any "symspec" containing "::" to work. -Qmain works as I expect, however.
What magic tricks need to be done to get gprof to include/exclude function names with "::"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论