Utilities for gathering statistics on the heap. Just measuring runtime memory usage doesn't give a good idea of how to optimize that usage, so this module is provided for profiling.
Returns an alist summarizing all heap allocated objects. The
car of each cell is the type-name, and the
cdr is the
count of objects of that type in the heap. Garbage is collected
before the counts are taken.
Returns the same value as
(heap-stats), but also prints
all objects on the heap as it runs.
depth indicates the
printing depth for compound objects and defaults to 1.
These functions just return
'() when using the Boehm GC.