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

时间:2010-05-25 15:54:55

标签: gcc gprof

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

1 个答案:

答案 0 :(得分:0)

从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.)