The gprof Command (cont)
The gprof command works at the function level.
It gives a table (flat profile) containing:
- number of times each function was called
- % of total execution time spent in the function
- average execution time per call to that function
- execution time for this function and its children
Arranged in order from most expensive function down.
It also gives a call graph, a list for each function:
- which functions called this function
- which functions were called by this function
|