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.
I figured it out - first run the lyx binary, this creates gmon.out,
then run gprof.
Unfortunately, I still can't profile lyx-qt4, because it
gets a SIGSEGV on close, and that prevents gmon.out from
being created. All that compiling for nothing. :-/
When lyx-qt3 ends, the only oddity is the age-old
annoying but harmless "Mutex destroy failure". Wish
it didn't happen, but I get a gmon.out file.
When lyx-qt4 ends, I get:
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting
instructions in Help->Introduction and send us a bug report, if
necessary. Thanks !
Bye.
Avbrutt (SIGABRT)
And no gmon.out because of this. Please tell when the SIGSEGV is gone
form lyx-qt4, then I'll try the profiling again.
I am closing lyx the normal ways, using the file menu or the X button.
Either way, lyx-qt4 dies while quitting preventing the profile information
from being saved.
While profiling, I also noticed a very slow startup, the icons on the
toolbar were painted one by one with a very noticeable
(several tenths of a second) delay between each.
Helge Hafting
Helge Hafting