Quote:
Originally Posted by laopi
I figure out the reason, if you copy the executable file to another directory, you won't get the gmon.out file, anyone knows how to set some variable so I can use gprof in another directory?
|
Surprisingly, I see absolutely no options allowing you to specify a different gmon.out file. I checked the manpage and the infopage. You might be able to use
-I path, but that seems like it's only for locating source files. Or maybe you just need to run
gprof from the location where gmon.out is rather than where the binary is.
Kevin Barry