[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory use analysis
From: |
Ludovic Courtès |
Subject: |
Re: Memory use analysis |
Date: |
Mon, 19 Aug 2013 16:09:54 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Hi,
address@hidden skribis:
> Is there some kind of tool or method for getting Guile to enumerate what
> objects in the heap are considered "live" by the GC? I guess the
> conservative GC Guile uses doesn't explicitly keep track of every
> object, but I wouldn't mind just being able to see what stuff in the
> heap it *thinks* it needs to keep, and then query what kind of SCM
> objects they represent.
Not exactly what you’re asking for, but very useful: the (statprof)
module comes with ‘gcprof’, which samples the stack each time the GC
runs (info "(guile) Statprof"). It allows you to see which part of the
programs are allocating the most, roughly.
HTH,
Ludo’.