Angus Leeming wrote:

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

I would do this myself, but have no time right now. Here is the recipe:

Compile every file for that you want profile information with the -pg
switch. This switch is also needed for linking, so the quick solution would
be something like

LDFLAGS="-pg" CXXFLAGS="-pg" configure

Running LyX then generates a file gmon.out in the current directory. You can
generate human readable profiling information by running

gprof <path to lyx executable> >profile.txt

in that directory.


Georg

Reply via email to