The default the profile file is from the executable is run and the file is called gmon.out. Is there any way to specify a new location?
gmon.out
I\'m using gcc 3
jscoot's solution worked for me, with the important difference of setting GMON_OUT_PREFIX at execution time, not at compile time.
GMON_OUT_PREFIX