>>>>> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:
Bennett> On Dec 8, 2005, at 11:09 AM, Jean-Marc Lasgouttes wrote: >>>>>>> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: >> Bennett> Done. I opened lyx, opened a file with a long paragraph in an Bennett> inset, typed a sentence in the middle of that paragraph (and Bennett> waited until the screen caught up), and then quit. Then gprof Bennett> ./lyx > profile.txt, and the result can be found here: Bennett> <http://edisk.fandm.edu/ bennett.helm/LyX/profile.txt.zip> Bennett> (431KB). >> This profile is strange... All the tims are set to 0. I read >> somewhere it is related to not linking against gcrt1.o. I think >> this is done if the -pg flag is used when linking. I wonder why >> this happens. Did you really rebuild the whole LyX? Bennett> I believe so: make clean in the lyx-devel directory. (I did Bennett> it after ./configure..., though I take it that doesn't Bennett> matter, right?) This was after rebuilding Qt with the Bennett> -profile flag set in configure. Bennett> Here's the output from the last linking stage: It looks reasonable. How was the qt library with profiling named? Something like libqt-mt_s? >> Some additional notes: >> >> - it is known that Shark.app provides wrong stacks apparently: >> http://lists.apple.com/archives/PerfOptimization-dev/2005/Jun/ >> msg00266.html Bennett> ... So does that mean I should do things differently? No, but version 4.2.3 should have several stack related problems fixed, so you could try to re-run tests with this version. >> - there is another program named Saturn in the CHUD tools that is a >> frontend to gprof. I do not know how to use it, but it might be >> useful. I did not find any doc about it, so I cannot tell you what >> to do. Bennett> (I'll send you info about this privately.) I'll try to take a look. Bennett> When I launch lyx via Saturn, Saturn creates its own data Bennett> file, which is enormous: launching lyx, opening my test file Bennett> with long paragraphs, scrolling, and typing a couple words Bennett> results in a file that's > 2GB. Then Saturn refused to open Bennett> its own data file -- I'm guessing because it was too big. Bennett> (Even just launching and quitting lyx produces a 560MB file.) Does not look good :) >> - there is also a tool named QuartzDebug that shows which areas of >> a window are updated by brief flashing. It might be interesting to >> play around with this. Bennett> It's a little hard to tell the order of events given that Bennett> things happen so quickly. But it seems like as you type, the Bennett> individual character that gets typed gets updated, then the Bennett> info bar at the bottom of the window is updated, and then the Bennett> whole text area of the window is updated. It's that last item Bennett> that seems significant: the entire window is updated with Bennett> each keystroke. Even when typing at top-level? We should only update the paragraph at cursor, I think. I'll try to find time to try it out myself. JMarc