Re: Heap profiler

2022-11-12 Thread Maxim Cournoyer
Hi, zimoun writes: > Hi, > > On Mon, 07 Nov 2022 at 12:03, Ludovic Courtès 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

Re: Heap profiler

2022-11-12 Thread zimoun
Hi, On Mon, 07 Nov 2022 at 12:03, Ludovic Courtès 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--

Heap profiler

2022-11-07 Thread Ludovic Courtès
Hello Guilers, While desperately chasing <https://issues.guix.gnu.org/59021> and related memory leak issues, I came up with the attached rudimentary heap profiler. You can load it and invoking it in a running process: --8<---cut here---start->

Heap profiler

2010-08-15 Thread Ludovic Courtès
Hello! Andy Wingo writes: > To really track this down we need a heap profiler. To make a heap > profiler, we need to hack libgc. As a start, I suggest looking at these: - http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/3392 - “Understanding Memory alloc