gprof symspec including C++ class functions
I'm trying to profile a pa开发者_开发技巧rticular 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 "::"?
精彩评论