Added ability generate profiles for gprof.