gccgprof

gprof: unexpected EOF after reading 48/271618093 bins?


What does this error mean for gprof? I'm running gcc -pg.


Solution

  • As this question is the top result on Google :

    You probably ran gprof the wrong way compile with the -pg flag execute your binary it will also output a "gmon.out" file

    then run :

    gprof {executable} gmon.out > profile
    

    the "profile" file should contain the results of gprof