emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which platforms do/do not support cpu time profiling?


From: Paul Eggert
Subject: Re: Which platforms do/do not support cpu time profiling?
Date: Tue, 20 Nov 2012 09:23:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2

On 11/20/12 09:00, Glenn Morris wrote:
> Why would I want to configure with --enable-profiling, and if I do, how
> do I use it?

You'd do that if you want a low-level CPU profile, one that
maps instruction counts to C functions (or even to
machine instructions).  You run Emacs and it automatically
generates a file gmon.out when it exits.  You then run
the shell command 'gprof emacs gmon.out' to get a textual summary of the
CPU profile.

It's helpful sometimes, when debugging, to get a profile
at this low level rather than at the Lisp level, which
is what the Emacs profiler does.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]