Memory Allocated in S-PLUS Frames

DESCRIPTION:
Reports the number of bytes allocated for each S-PLUS frame.

USAGE:
allocated()

VALUE:
vector showing the total amount of storage in bytes allocated in each frame. The names attribute gives the name of the function called in each frame.

SEE ALSO:
memory.size , storage , object.size .

EXAMPLES:
# default allocations when called at top level, corresponding
# to the nesting of frames in .Program
allocated()
   Frame 1
     4090

function() { at.start <- allocated() # ... do some work ... now <- allocated() # changes in allocations now - at.start }