Gnus development mailing list
 help / color / mirror / Atom feed
From: Jan Vroonhof <jvlists@ntlworld.com>
Subject: Re: Checking new mail very slow with current CVS
Date: Fri, 04 Jan 2002 13:00:04 +0000	[thread overview]
Message-ID: <g3heq2nuej.fsf@bart.isltd.insignia.com> (raw)
In-Reply-To: <iluheq3z1cr.fsf@extundo.com>

Simon Josefsson <jas@extundo.com> writes:

>> You guys are aware that XEmacs has native profiling support (see
>> 'start-profiling')?
>
> Cool!  I wasn't aware of it, it seems to give more reliable results.
> (Shouldn't `start-profiling' be a interactive function?)

Possibly... The main interactive use is supposed to be M-x
profile-key-sequence or lisp-eval calls..

>> Although that does not do tree based profiling.
>
> What is that?  Does elp do it?

I meant that the fact the current XEmacs profiling only counts time to
the function we are actually in. i.e. in

(def foo ()
    bar())

If bar takes 3 seconds that time isn't counted to foo.  XEmacs does
this because it is most easy to implement if you do sample based
profiling.

Elp on the other hand attributes the time to both foo and bar. That is
more easy to do if you do wrapping. It would be possible to add this
to XEmacs as well (for instance by walking the stack on each profiling
tick).

True tree based profiling will give you times for each path from the
root in the call tree, i.e.  with tell you we spend 3 seconds in bar
when called from foo and 0.5 seconds when called from xyz.

All three are useful. The current XEmacs way is better at spotting
lowlevel hotspots, for instance so we know which C functions to
optimize to make that app go futher. The elp way is better at spotting
higher-level problem (and luckily the loss of accuracy isn't as
important there).

Jan



  reply	other threads:[~2002-01-04 13:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-25  6:49 Russ Allbery
2001-12-25 13:36 ` Simon Josefsson
2001-12-25 22:07   ` Russ Allbery
2001-12-25 22:15     ` Russ Allbery
2001-12-25 23:11     ` Simon Josefsson
2001-12-26  0:41       ` Russ Allbery
2001-12-26 13:56         ` Simon Josefsson
2001-12-26 21:32           ` Russ Allbery
2001-12-26 21:55             ` Simon Josefsson
2001-12-26 23:26             ` Steve Youngs
2002-01-03 18:59             ` Jan Vroonhof
2002-01-03 19:22               ` Simon Josefsson
2002-01-04 13:00                 ` Jan Vroonhof [this message]
2002-01-04 15:19                   ` Jan Vroonhof
2002-01-05  6:02                   ` Russ Allbery
2001-12-27 10:04           ` Russ Allbery
2001-12-27 15:33             ` Simon Josefsson
2002-01-09 17:08               ` Sebastian Krause
2002-01-09 17:42                 ` Simon Josefsson

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=g3heq2nuej.fsf@bart.isltd.insignia.com \
    --to=jvlists@ntlworld.com \
    /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.
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 NNTP newsgroup(s).