
Using gprof, you can also produce an annotated source listing that gives an idea about the number of times each line of the program was executed.An external tool by the name of gprof2dot can be used to convert the call graph from gprof into graphical form.So, make sure that your program has sufficient privileges to create a file in the current directory. The "gmon.out" file is always created in the current working directory.The file is not produced when the program either exits by calling the _exit() function or abnormally terminates due to an un-handled signal. To write the gmon.out file properly, your program must exit normally.

To turn off the details, use the -b command line option with the gprof command.

Note that the detailed explanation of these fields is present in the file containing profiling information (prof_output in this case) and is generated each time the profiler is run.
