unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: tomo@cx4a.org, eggert@cs.ucla.edu, emacs-devel@gnu.org
Subject: Re: Elisp native profiler
Date: Thu, 27 Sep 2012 08:37:48 -0400	[thread overview]
Message-ID: <jwvhaqjy7cq.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83vcf0eyp2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Sep 2012 09:01:45 +0200")

> AFAIK, any backtrace facility is specific to the object file format
> and the debug info used by the platform.  Compiler optimizations and
> various non-local jumps complicate things a lot.  My suggestion would
> be not to go there, unless absolutely needed and desirable, because it
> most probably be in a constant need of maintenance to keep up with
> development of the underlying platform, compilers, etc.

Agreed.  Instead, I think we should just add some backtrace_list
registration to a few more functions (I've already added
Fgarbage_collect and redisplay_internal which covers the main points) if
we want more precision.  But since those don't come for free, we can
only do it for functions that take long enough that the impact can
be ignored.

> I think profiler-cpu-stop should revert the SIGPROF handler to its
> original value.  Currently, it only disables the interval timer, but
> leaves the SIGPROF handler pointed at its handler in profiler.c, which
> ain't right AFAICS.

Yes, that would be cleaner.

> Btw, the names profiler-cpu-* are not good names,

I'm not wedded to them, so if you have good alternatives, we can
change them.

> IMO: the "cpu" part is not correct.  How about profiler-funcall-* or
> profiler-execution-* instead?

Why?  The distinction between profiler-cpu-* and profiler-memory-* is
the "time basis", where one uses "cpu time" and the other "memory
allocation", hence the names.  "funcall" and "execution" both seem
completely unrelated.


        Stefan



  reply	other threads:[~2012-09-27 12:37 UTC|newest]

Thread overview: 113+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25  2:41 Elisp native profiler Stefan Monnier
2012-09-25 11:40 ` Juanma Barranquero
2012-09-25 13:18 ` Eli Zaretskii
2012-09-25 13:26   ` Eli Zaretskii
2012-09-25 17:28     ` Stefan Monnier
2012-09-25 19:21       ` Paul Eggert
2012-09-25 20:12         ` Eli Zaretskii
2012-09-26  0:55         ` Stefan Monnier
2012-09-26  6:16           ` Tomohiro Matsuyama
2012-09-26  7:35             ` Eli Zaretskii
2012-09-26  7:59               ` Tomohiro Matsuyama
2012-09-26  9:32                 ` Eli Zaretskii
2012-09-26 22:46                   ` Tomohiro Matsuyama
2012-09-27  5:55                     ` Eli Zaretskii
2012-09-27  7:01                       ` Eli Zaretskii
2012-09-27 12:37                         ` Stefan Monnier [this message]
2012-09-27 17:49                           ` Eli Zaretskii
2012-09-27 17:52                           ` Eli Zaretskii
2012-09-27 20:35                             ` Stefan Monnier
2012-09-27 20:46                               ` Eli Zaretskii
2012-09-27 22:12                                 ` Stefan Monnier
2012-09-28  7:09                                   ` Eli Zaretskii
2012-09-28  8:24                                     ` Stefan Monnier
2012-09-28 14:11                                       ` Eli Zaretskii
2012-09-28  8:03                                   ` Stephen Berman
2012-09-28  8:26                                     ` Stefan Monnier
2012-09-30  7:39                         ` Paul Eggert
2012-09-30  7:58                           ` Eli Zaretskii
2012-09-28 10:09                       ` Tomohiro Matsuyama
2012-09-28 11:05                         ` Eli Zaretskii
2012-09-28 12:43                           ` Stefan Monnier
2012-09-28 14:16                             ` Eli Zaretskii
2012-09-28 20:11                               ` Stefan Monnier
2012-09-28 20:14                                 ` Eli Zaretskii
2012-09-29  2:13                                   ` Stefan Monnier
2012-09-28 12:40                         ` Stefan Monnier
2012-09-26 17:42             ` Stefan Monnier
2012-09-26 22:52               ` Tomohiro Matsuyama
2012-09-28  9:14               ` Tomohiro Matsuyama
2012-09-28 11:00                 ` Eli Zaretskii
2012-09-30  7:37                   ` Paul Eggert
2012-09-30  7:58                     ` Eli Zaretskii
2012-09-30  8:16                       ` Paul Eggert
2012-09-28 12:37                 ` Stefan Monnier
2012-09-30 16:42               ` Tomohiro Matsuyama
2012-09-30 19:23                 ` Paul Eggert
2012-09-30 20:13                   ` Stefan Monnier
2012-09-30 20:43                     ` Paul Eggert
2012-10-01  0:41                       ` Stefan Monnier
2012-10-01  1:49                         ` Paul Eggert
2012-10-01 14:25                           ` Stefan Monnier
2012-10-01 14:48                             ` Eli Zaretskii
2012-10-01 16:31                               ` Stefan Monnier
2012-10-01 17:19                                 ` Eli Zaretskii
2012-10-01 16:41                               ` Paul Eggert
2012-10-01 17:52                                 ` Eli Zaretskii
2012-10-01 17:59                                   ` Eli Zaretskii
2012-10-01 21:12                                     ` Eli Zaretskii
2012-10-01 22:21                                   ` Paul Eggert
2012-10-02  2:06                                   ` Stefan Monnier
2012-10-02  4:00                                     ` Eli Zaretskii
2012-10-02 12:58                                       ` Stefan Monnier
2012-10-02 17:14                                         ` Eli Zaretskii
2012-10-03  1:27                                           ` Stefan Monnier
2012-10-02  5:28                                     ` Paul Eggert
2012-10-02 13:00                                       ` Stefan Monnier
2012-10-02 16:17                                         ` Paul Eggert
2012-10-02 13:23                                   ` Jason Rumney
2012-10-02 17:20                                     ` Eli Zaretskii
2012-10-03 14:25                                       ` Jason Rumney
2012-10-03 17:43                                         ` Eli Zaretskii
2012-10-01 15:10                             ` Paul Eggert
2012-10-01 10:37                       ` Eli Zaretskii
2012-10-01 11:25                         ` Tomohiro Matsuyama
2012-10-01 14:59                           ` Paul Eggert
2012-10-01 14:54                         ` Paul Eggert
2012-10-01 15:28                           ` Eli Zaretskii
2012-10-01 16:34                             ` Stefan Monnier
2012-10-01 16:51                               ` Paul Eggert
     [not found]                                 ` <1349123390.31932.1@faina>
2012-10-02  6:41                                   ` Paul Eggert
2012-10-02 13:03                                     ` Stefan Monnier
2012-10-03  5:11                                       ` Paul Eggert
2012-10-03 12:50                                         ` Stefan Monnier
2012-10-03 14:06                                           ` Andreas Schwab
2012-10-03 17:22                                             ` Stefan Monnier
2012-10-03 17:39                                           ` Eli Zaretskii
2012-10-01 16:39                             ` Paul Eggert
2012-09-30 22:28                     ` Tomohiro Matsuyama
2012-09-30 22:26                   ` Tomohiro Matsuyama
2012-09-26  7:39         ` Tomohiro Matsuyama
2012-09-26 14:33           ` Paul Eggert
2012-09-26 18:58             ` Ivan Andrus
2012-09-27  1:11               ` Paul Eggert
2012-09-25 20:10       ` Eli Zaretskii
2012-09-26  0:53         ` Stefan Monnier
2012-09-26  0:30       ` Stephen J. Turnbull
2012-09-26  1:00     ` Stefan Monnier
2012-09-26  7:41       ` Eli Zaretskii
2012-09-26 12:55         ` Stefan Monnier
2012-09-26 13:19           ` Eli Zaretskii
2012-09-26 13:26             ` Eli Zaretskii
2012-09-26 17:49               ` Stefan Monnier
2012-09-26 19:31                 ` Eli Zaretskii
2012-09-26 20:20                   ` Stefan Monnier
2012-09-26 22:50                     ` Tomohiro Matsuyama
2012-09-27  4:02                       ` Stefan Monnier
2012-09-30  7:32                         ` Paul Eggert
2012-09-29 15:24                 ` Eli Zaretskii
2012-09-29 16:06                   ` Stefan Monnier
2012-09-29 16:18                     ` Eli Zaretskii
2012-09-29 20:17                       ` Stefan Monnier
2012-09-30 15:54             ` Eli Zaretskii
2012-09-25 13:40   ` Juanma Barranquero

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvhaqjy7cq.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tomo@cx4a.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).