Jean-Marc Lasgouttes wrote: > We have a --enable-profiling option nowadays. Note that it is not > enough in itself. You should add > --disable-assertions --disable-stdlib-debug > -enable-optimization=-O2 > > The big problem with gprof is that I never manage to get it to count > the time spent in the Qt library. That makes its timings pretty > useless in the case we are interesting in.
I don't think so. LyX feels the same to me running with either frontend. Anyway, I'm currently building now, having configured, so. Look OK? $ ../configure \ --enable-profiling \ --disable-assertions \ --disable-stdlib-debug \ --enable-optimization=-O2 \ --with-frontend='qt' --with-qt-includes='/usr/include/qt3' \ LDFLAGS='-Wl,-t' I've hisotorically needed the LDFLAGS to overcome a linker bug that leads to errors: chset.o(.rodata+0x8): relocation truncated to fit: GPREL32 UND Dunno if I still need it... Configuration Host type: alphaev6-unknown-linux-gnu Special build flags: compression aiksaurus pch concept-checks warnings use-aspell use-ispell C Compiler: gcc C Compiler LyX flags: C Compiler flags: -Wextra -Wall -I/usr/X11R6/include -pg -g -O2 C++ Compiler: g++ (4.0.2) C++ Compiler LyX flags: -fno-exceptions C++ Compiler flags: -Wextra -Wall -I/usr/X11R6/include -pg -g -O2 Linker flags: Linker user flags: -pg -Wl,-t Qt Frontend: Qt version: 3.3.5 Packaging: posix LyX binary dir: /usr/local/bin LyX files dir: /usr/local/share/lyx > It is supposedly possible to use oprofile to get a nice system-wide > profile, and call-graph can be obtained with a really recent kernel > (2.6.12?). This would be the best solution, I guess. I'll try gprof first. The Alpha has a 2.4 kernel which means I'd have to rebuild it to give me oprofile support, if I understand the oprofile docs correctly. -- Angus