all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* igc statistics display
@ 2025-01-09  8:22 Gerd Möllmann
  2025-01-09  8:34 ` Eli Zaretskii
  2025-01-09  9:30 ` Helmut Eller
  0 siblings, 2 replies; 4+ messages in thread
From: Gerd Möllmann @ 2025-01-09  8:22 UTC (permalink / raw)
  To: Emacs Devel

The branch scratch/igc has an igc.el which contains a couple of
functions with which one can inspect some innards if the GC, igc-stats
and igc-root-stats.

That's useful I think, but I'd like to extend it so that one can see
what happens over a longer period of time. For that purpose, I've added
igc-start/stop-collecting-stats a while ago which collects CSV data in a
buffer every N seconds. I can import that CSV into a sqlite table and
display a (very simple) plot of a query, say what's happening for
conses, using DB Browser,

That as background.

What I'm looking for is something better. Ideally, I imagine something
working online, i.e. instead of writing CSV, I would send something to a
monitor program storing that data, and displaying plots of my choice.

I thought someone might have a similar use-case, and could give advice
what to use for something like that, preferably a small implementation
resistance, of course. Or, might be interesting helping, which would of
course be even better, because I'm a bit out of my comfort zone here.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: igc statistics display
  2025-01-09  8:22 igc statistics display Gerd Möllmann
@ 2025-01-09  8:34 ` Eli Zaretskii
  2025-01-09  9:30 ` Helmut Eller
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2025-01-09  8:34 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: emacs-devel

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Thu, 09 Jan 2025 09:22:10 +0100
> 
> What I'm looking for is something better. Ideally, I imagine something
> working online, i.e. instead of writing CSV, I would send something to a
> monitor program storing that data, and displaying plots of my choice.
> 
> I thought someone might have a similar use-case, and could give advice
> what to use for something like that, preferably a small implementation
> resistance, of course. Or, might be interesting helping, which would of
> course be even better, because I'm a bit out of my comfort zone here.

AFAIK, we use gnuplot for graphics.  There are interfaces for that in
Calc and in Org.

There's also chart.el, but it can only draw bar charts.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: igc statistics display
  2025-01-09  8:22 igc statistics display Gerd Möllmann
  2025-01-09  8:34 ` Eli Zaretskii
@ 2025-01-09  9:30 ` Helmut Eller
  2025-01-09 10:12   ` Gerd Möllmann
  1 sibling, 1 reply; 4+ messages in thread
From: Helmut Eller @ 2025-01-09  9:30 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: Emacs Devel

On Thu, Jan 09 2025, Gerd Möllmann wrote:

> I thought someone might have a similar use-case, and could give advice
> what to use for something like that, preferably a small implementation
> resistance, of course. Or, might be interesting helping, which would of
> course be even better, because I'm a bit out of my comfort zone here.

I'm currently learning a bit to use systemtap.  It seems that systemtap
is similar to dtrace, which I think is available for macOS.  Maybe you
could try that.  Unfortunately, systemtap seems to be targeted more at
kernel code than at user space code.

I mostly follow the advice from here:
https://www.brendangregg.com/blog/2015-07-08/choosing-a-linux-tracer.html

Helmut



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: igc statistics display
  2025-01-09  9:30 ` Helmut Eller
@ 2025-01-09 10:12   ` Gerd Möllmann
  0 siblings, 0 replies; 4+ messages in thread
From: Gerd Möllmann @ 2025-01-09 10:12 UTC (permalink / raw)
  To: Helmut Eller; +Cc: Emacs Devel

Helmut Eller <eller.helmut@gmail.com> writes:

> On Thu, Jan 09 2025, Gerd Möllmann wrote:
>
>> I thought someone might have a similar use-case, and could give advice
>> what to use for something like that, preferably a small implementation
>> resistance, of course. Or, might be interesting helping, which would of
>> course be even better, because I'm a bit out of my comfort zone here.
>
> I'm currently learning a bit to use systemtap.  It seems that systemtap
> is similar to dtrace, which I think is available for macOS.  Maybe you
> could try that.  Unfortunately, systemtap seems to be targeted more at
> kernel code than at user space code.
>
> I mostly follow the advice from here:
> https://www.brendangregg.com/blog/2015-07-08/choosing-a-linux-tracer.html
>
> Helmut

That's an interesting thought! Maybe one could generate perf events, or
what they are called. don't remember much about dtrace. And I would have
to check what macOS allows one to do without disabling security measures
which itself would require a reboot in recovery mode. Very interesting!

And one would of course need some nice interface for displaying events.

Thanks!



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-09 10:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09  8:22 igc statistics display Gerd Möllmann
2025-01-09  8:34 ` Eli Zaretskii
2025-01-09  9:30 ` Helmut Eller
2025-01-09 10:12   ` Gerd Möllmann

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.