From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: Elisp native profiler
Date: Wed, 26 Sep 2012 21:31:55 +0200 [thread overview]
Message-ID: <83zk4cfums.fsf@gnu.org> (raw)
In-Reply-To: <jwvfw64u1aw.fsf-monnier+emacs@gnu.org>
> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: emacs-devel@gnu.org
> Date: Wed, 26 Sep 2012 13:49:57 -0400
>
> >> I didn't say we should prevent users of other platforms from enjoying
> >> this feature. But if this will be in 24.3, someone, probably myself,
> >> will need to add the missing pieces to get it working on Windows.
>
> > Btw, is it possible to have a simple test case, starting from "emacs -Q",
> > to check that the profiling (both cpu and memory) works? That would
> > simplify testing of this on MS-Windows.
>
> I typically do:
>
> emacs -Q
> M-x profiler-start RET
> C-x C-f src/regexp.c RET
> page-down until I get to the end of the buffer, then page-up to the beginning
> M-x profiler-report RET
(I presume that was regex.c, not regexp.c.)
Thanks for the recipe.
> Verifying that the resulting profile is accurate is rather difficult,
> of course, so as long as it looks credible, I assume it's more or
> less correct.
Can you show your results, for the reference?
The first lines in what I got (still only the memory profiler, the
itimer code is in the works and not ready yet) look suspicious to me
in the last column:
+ call-interactively 46,352,691 2%
+ Automatic Redisplay 30,389,586 -1%
+ scroll-up-command 24,834,342 2%
+ jit-lock-function 20,082,147 0%
+ scroll-up 15,687,351 3%
+ jit-lock-fontify-now 2,196,032 1%
+ byte-code 1,426,989 1%
+ read-from-minibuffer 312,804 0%
+ run-hook-with-args 237,005 0%
(Overflow?)
Here's the same with the + signs expanded:
- call-interactively 46,352,691 2%
- scroll-up-command 43,373,729 0%
- scroll-up 43,373,729 0%
- jit-lock-function 41,648,995 0%
- jit-lock-fontify-now 41,648,995 0%
- byte-code 41,619,059 0%
- run-hook-with-args 41,619,059 0%
- font-lock-fontify-region 41,619,059 0%
- c-font-lock-fontify-region 41,619,059 0%
- font-lock-default-fontify-region 40,842,125 -1%
- font-lock-fontify-keywords-region 39,963,822 -2%
- c-font-lock-declarations 34,602,780 1%
- c-find-decl-spots 34,602,780 1%
+ #<compiled 0x40567bf> 28,867,024 -2%
looking-at 2,817,588 1%
re-search-forward 1,791,738 1%
- c-forward-sws 413,348 0%
looking-at 355,304 0%
put-text-property 26,844 0%
- c-beginning-of-current-toke 150,676 0%
looking-at 150,676 0%
- c-beginning-of-macro 66,408 0%
looking-at 66,408 0%
- c-backward-sws 39,468 0%
c-beginning-of-macro 12,480 0%
next prev parent reply other threads:[~2012-09-26 19:31 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zk4cfums.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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.