generate gprof file only if building with gprof