[Openmcl-devel] heap-usage.lisp
Gary Byers
gb at clozure.com
Mon Mar 1 22:53:17 PST 2004
I was trying to find a memory leak a few days ago (threads leave at least a
few Kb behind) and wrote the enclosed little utility to try to see how lisp
memory was being utilized. It was useful in that case and may be
interesting/useful to others.
This stops other threads, disables the GC, and still doesn't have a precise
notion of how many cons cells are out there (it could overestimate their
number by as much as 8K, but should get the other stuff right.)
There are certainly lots of other details that one might want to know, but
this should give you a pretty good idea of what's eligible for GC but
referenced at any point in time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heap-usage.lisp
Type: application/octet-stream
Size: 3602 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20040301/99cdc7fd/attachment.obj>
More information about the Openmcl-devel
mailing list