Previous: , Up: Profiling an Ada Program with gprof   [Contents][Index]


6.2.2.4 Interpretation of profiling results

The results of the profiling analysis are represented by two arrays: the ’flat profile’ and the ’call graph’. Full documentation of those outputs can be found in the GNU Profiler User’s Guide.

The flat profile shows the time spent in each function of the program, and how many time it has been called. This allows you to locate easily the most time-consuming functions.

The call graph shows, for each subprogram, the subprograms that call it, and the subprograms that it calls. It also provides an estimate of the time spent in each of those callers/called subprograms.