On Sep 22, 2005, at 3:57 AM, Jean-Marc Lasgouttes wrote:

Angus> It looks like we're all seeing the same thing. Time to do some
Angus> profiling I guess. If someone gives me a prescription of what I
Angus> need to do to recompile lyx ready for profiling and how to use
Angus> gprof, I'll volunteer.

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

OK ... I've tried this, and it looks like --disable-assertions creates problems requiring that

#include <boost/current_function.hpp>

be added to each of the following:

src/factory.C
src/messages.C
src/text.C
src/text2.C


(I also had to hand-edit the tex2lyx Makefile to change optimization to -Os, because of an apparent gcc bug on Mac OS X with -O2.)

Unfortunately, I can't get profiling to be usable: starting LyX from the command line on Mac results in a LyX window that refuses to take focus (resulting in useless profiling info), and I can't figure out any other way to produce gmon.out. (Any suggestions?)

Bennett

Reply via email to