Hi, m...@markwitmer.com 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’.