Flowdock
method

memsize_of

Importance_1
v2_5_5 - Show latest stable - 0 notes - 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.

From Ruby 2.2, memsize_of(obj) returns a memory size includes sizeof(RVALUE).

Show source
Register or log in to add new notes.