I compiled a program using the -pg switch and linked using the -pg switch. When my program runs, the file "gmon.out" is created. However, after running gprof in the file, there is no data other than the standard information explaining the data provided.
Why was there nothing in the gmon.out file? Obviously, the program is compiled and correctly linked to the creation of a new file "gmon.out"; he simply has no data.
source share