wiki:HeapUtilization

Version 1 (modified by alms, 6 years ago) (diff)

document heap-utilization

Heap Utilization

[Function]

heap-utilization &key (stream *debug-io*) (gc-first t)

heap-utilization walks the lisp heap, collects information about the objects stored on the heap, and prints a report of the results to stream.

Welcome to Clozure Common Lisp Version 1.2-r9579-trunk  (DarwinX8664)!
? (heap-utilization)
Object type                               Count   Total Size in Bytes
CONS                                      128968          2063488
SYMBOL                                     32059          1795304
BIGNUM                                       104             4076
MACPTR                                       149             5608
COMPLEX                                        1               16
DOUBLE-FLOAT                                  64              512
HASH-VECTOR                                   71           567264
STRUCTURE                                   3112           237640
POOL                                          28              224
ISTRUCT                                     2457           124440
POPULATION                                    22              536
VALUE-CELL                                    18              144
PACKAGE                                       14              896
SLOT-VECTOR                                 4452           378104
LOCK                                         117             5616
BASIC-STREAM                                  33             1296
INSTANCE                                    4014            96336
FUNCTION                                   11669          5467328
SIMPLE-VECTOR                              23079          2057848
SIMPLE-UNSIGNED-WORD-VECTOR                    2               62
SIMPLE-BASE-STRING                         41614          2605836
SIMPLE-UNSIGNED-BYTE-VECTOR                  298            83579
SIMPLE-UNSIGNED-DOUBLEWORD-VECTOR              1             4088
BIT-VECTOR                                     6              266