all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Which platforms do/do not support cpu time profiling?
Date: Tue, 20 Nov 2012 09:23:00 -0800	[thread overview]
Message-ID: <50ABBC74.9060507@cs.ucla.edu> (raw)
In-Reply-To: <qlk3tgryyy.fsf@fencepost.gnu.org>

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	other threads:[~2012-11-20 17:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20  1:25 Which platforms do/do not support cpu time profiling? Glenn Morris
2012-11-20  3:00 ` Glenn Morris
2012-11-20  3:51 ` Eli Zaretskii
2012-11-20  3:56 ` Paul Eggert
2012-11-20 17:00   ` Glenn Morris
2012-11-20 17:23     ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50ABBC74.9060507@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.