From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>, guile-user@gnu.org
Subject: Re: Heap profiler
Date: Sat, 12 Nov 2022 10:24:25 +0100 [thread overview]
Message-ID: <865yfky186.fsf@gmail.com> (raw)
In-Reply-To: <87k047uiul.fsf@inria.fr>
Hi,
On Mon, 07 Nov 2022 at 12:03, Ludovic Courtès <ludo@gnu.org> wrote:
> --8<---------------cut here---------------start------------->8---
> scheme@(guile-user)> (profile-heap)
[...]
> sampled heap: 3.48865 MiB (heap size: 12.78906 MiB)
> $5 = #t
> --8<---------------cut here---------------end--------------->8---
>
> It samples the GC-managed heap and counts the number and size of objects
> of each type. The “unknown” bit is anything that lacks a type tag, such
> as stacks allocated for delimited continuations by ‘capture_stack’ in
> libguile.
It could nice to have it by default. For instance under ’,help profile’
with something like ’,heap [,ph] - Profile heap memory executation’. Or
elsewhere as ’,help system’ close to ,gc.
Cheers,
simon
next prev parent reply other threads:[~2022-11-12 9:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 11:03 Heap profiler Ludovic Courtès
2022-11-12 9:24 ` zimoun [this message]
2022-11-13 3:29 ` Maxim Cournoyer
-- strict thread matches above, loose matches on Subject: below --
2010-07-19 18:08 Possible Memory Leak with stream-for-each Abhijeet More
2010-07-24 16:13 ` Ludovic Courtès
2010-07-24 16:32 ` Abhijeet More
2010-07-24 16:46 ` Abhijeet More
2010-07-26 9:36 ` Andy Wingo
2010-07-30 0:38 ` Abhijeet More
2010-07-31 11:48 ` Andy Wingo
2010-08-15 15:12 ` Heap profiler Ludovic Courtès
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=865yfky186.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guile-user@gnu.org \
--cc=ludo@gnu.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.
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).