[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Heap profiler
From: |
Maxim Cournoyer |
Subject: |
Re: Heap profiler |
Date: |
Sat, 12 Nov 2022 22:29:09 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi,
zimoun <zimon.toutoune@gmail.com> writes:
> 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.
+1 :-)
--
Thanks,
Maxim