size ( obj -- n )
Factor handbook » Developer tools » Object memory tools

Prev:instances ( quot -- seq )
Next:gc ( -- )


Vocabulary
memory

Inputs
objan object


Outputs
na size in bytes


Word description
Outputs the size of the object in memory, in bytes. Tagged immediate objects such as fixnums and f will yield a size of 0.

Definition