со страницы руководства 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.)