Profiling with gprof should work