Node:No profile, Previous:IO bound programs, Up:Profiling

13.5 gprof doesn't produce output

Q: Every time I run the profiler it says "gmon.out: no such file or directory" and no profile is produced. What is this gmon.out file, and why won't gprof compute the profile?

A: gmon.out is the file with raw execution counts and timing info that gprof needs to produce the profile. The file is written by the profiled program when it exits. If the file isn't created, it might be because of one of the following reasons: