Add profiling with gprof.