Changes between Version 5 and Version 6 of MemoryUtils
- Timestamp:
- 06/23/10 20:03:38 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MemoryUtils
v5 v6 39 39 40 40 [Function][[BR]] 41 '''object-direct-size''' `object` 42 43 Returns the size of `object` (in bytes), including any headers and 44 alignment overhead. Does not descend an object's components. 45 46 [Function][[BR]] 41 47 '''heap-utilization''' `&key` (''stream'' `*debug-io*`) (''gc-first'' `t`) (''area'' `nil`) (''unit'' `nil`) (''sort'' `:size`) (''classes'' `nil`) (''start'' `nil`) (''threshold'' `(and classes 0.0005)`) 42 48 43 49 44 `heap-utilization` walks the lisp heap, collects information about the objects stored on the heap, and prints a report of the results to ''stream''. It shows the number of objects of each type, the logical size (i.e. the size of the data part of the object) and the physical size (the logical size plus any header and padding bytes).50 `heap-utilization` walks the lisp heap, collects information about the objects stored on the heap, and prints a report of the results to ''stream''. It shows the number of objects of each type, the sum of their logical sizes (i.e. the size of the data part of the object) and the sum of their physical sizes (i.e. total size as computed by `object-direct-size`). 45 51 46 52 If ''gc-first'' is true (the default), does a full gc before scanning the heap.
