GNU bug report logs -
#58558
29.0.50; re-search-forward is slow in some buffers
Previous Next
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> I briefly tried to use "perf" under Linux to connect to a running
>> Emacs and get some data out of it, but... er... I've never used it
>> before, and...
>>
>> Does anybody have a recipe for how to do runtime function tracing for a
>> running process?
>
> The way I run perf is to start Emacs under perf to begin with.
>
> What did you try? It was quite simple, AFAIR, last time I tried.
I thought it might be easier to see the differences in results if one
first attached perf to a fresh (fast) Emacs and got the trace, and the
waited until Emacs got slow, and repeated the same thing under another
trace.
perf is able to do this by:
perf record -p <PID> -g
and
perf report
then shows me stuff, but I don't even know what to look for when
interpreting that. Or whether perf is, indeed, the right too for this
task.
This bug report was last modified 2 years and 65 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.