Changes between Version 5 and Version 6 of MemoryUtils


Ignore:
Timestamp:
06/24/10 01:03:38 (4 years ago)
Author:
gz
Comment:

add object-direct-size

Legend:

Unmodified
Added
Removed
Modified
  • MemoryUtils

    v5 v6  
    3939 
    4040[Function][[BR]] 
     41'''object-direct-size''' `object` 
     42 
     43Returns the size of `object` (in bytes), including any headers and  
     44alignment overhead.  Does not descend an object's components. 
     45 
     46[Function][[BR]] 
    4147'''heap-utilization''' `&key` (''stream'' `*debug-io*`) (''gc-first'' `t`) (''area'' `nil`) (''unit'' `nil`) (''sort'' `:size`) (''classes'' `nil`) (''start'' `nil`) (''threshold'' `(and classes 0.0005)`) 
    4248 
    4349 
    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`). 
    4551 
    4652If ''gc-first'' is true (the default), does a full gc before scanning the heap.