all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: eller.helmut@gmail.com, emacs-devel@gnu.org
Subject: Re: igc statistics display
Date: Fri, 10 Jan 2025 09:25:51 +0200	[thread overview]
Message-ID: <86ldvj1668.fsf@gnu.org> (raw)
In-Reply-To: <m2y0zjxjyo.fsf@gmail.com> (message from Gerd Möllmann on Fri, 10 Jan 2025 07:26:55 +0100)

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Emacs Devel <emacs-devel@gnu.org>
> Date: Fri, 10 Jan 2025 07:26:55 +0100
> 
> BTW, found this
> 
>   https://docs.python.org/3/howto/instrumentation.html
> 
> which basically says that Python can be built with Dtrace support that
> one can use to monitor Python processes.
> 
> I wonder if something like that wouldn't be interesting for Emacs also
> beyond monitoring GC activity.

We already have something similar for the display engine
(trace-redisplay), and it is indeed very useful for investigating
display problems.  So yes, I think that having a similar facility for
tracing GC in a build configured with --enable-checking=gc should be
useful.  However, it is possible that the means for activating the
trace, whether it should be a command or a variable or something else,
should be discussed, since GC is a more rare activity than redisplay,
so maybe the same model is not optimal here.

Whether this could be useful beyond GC is a separate issue.  One
complication is that different internal activities have different time
frames and different traits, so I'm not sure they can all be usefully
traced using the same commands/variables.  In addition, the sheer
flood of tracing outputs could well make this hard to use, even with
today's large screens.

So my gut feeling is that we should design the trace facilities
separately for each kind of internal activities.



  reply	other threads:[~2025-01-10  7:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09  8:22 igc statistics display Gerd Möllmann
2025-01-09  8:34 ` Eli Zaretskii
2025-01-11 11:04   ` Matthias Meulien
2025-01-11 12:45     ` Gerd Möllmann
2025-01-09  9:30 ` Helmut Eller
2025-01-09 10:12   ` Gerd Möllmann
2025-01-10  6:26     ` Gerd Möllmann
2025-01-10  7:25       ` Eli Zaretskii [this message]
2025-01-10  7:31       ` Helmut Eller
2025-01-10  7:46         ` Eli Zaretskii
2025-01-10  8:05           ` Gerd Möllmann
2025-01-10  8:22             ` Eli Zaretskii
2025-01-10  9:02               ` Gerd Möllmann
2025-01-10 11:24                 ` Eli Zaretskii
2025-01-10  8:23             ` Helmut Eller
2025-01-10  9:04               ` Gerd Möllmann

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=86ldvj1668.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eller.helmut@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=gerd.moellmann@gmail.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.
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.