method
memsize_of
v2_1_10 -
Show latest stable
- Class:
ObjectSpace
memsize_of(p1)public
Return consuming memory size of obj.
Note that the return size is incomplete. You need to deal with this information as only a HINT. Especially, the size of T_DATA may not be correct.
This method is only expected to work with C Ruby.