total_size#

caput.util.objecttools.total_size(obj: Any) int[source]#

Return the approximate memory used by an object and anything it references.

Parameters:
objAny

Any object

Returns:
size_in_bytesint

Approximate memory size in bytes of the object and anything it references.