[prev] [index] [next]

Performance Analysis under Unix

Unix has many tools for performance analysis.

We look briefly at three of them:

  • time - elapsed execution time
    (a useful coarse measure of performance)
  • gprof - flat profile
    (gives list of time spent in each function)
  • gprof - call-graph profile
    (gives details of which function called which other function and how much it cost)