Georg Baum wrote:
Helge Hafting wrote:
I could not find any "gmon.out" anywhere, am I supposed to
to more than using --enable-profiling and run make?
gprof documentation seem to suggest that the gmon.out should appear
during the compile, but it didn't.
No, it appears in the current directory after you run the program. Therefore
the generated profile covers only the parts that where executed.
The problem is, it doesn't appear. No file, so gprof ends with
the complaint "gmon.out: no such file or directory"
Creating this file with "touch" instead yields the complaint
"gmon.out: file too short to be a gmon file"
which isn't that surprising. Clearly, gprof expects the
file to be made for it, but that doesn't happen.
Checking some further, lyx changes the working directory
to my homedir. And there is a gmon.out file there.
I'll try more, running lyx from the homedir instead.
Helge Hafting