getObjectSize¶
-
lsst.daf.butler.core.utils.
getObjectSize
(obj, seen=None)¶ Recursively finds size of objects.
Only works well for pure python objects. For example it does not work for
Exposure
objects where all the content is behind getter methods.Parameters: Returns: - size :
int
Size in bytes.
See also
Notes
See https://goshippo.com/blog/measure-real-size-any-python-object/
- size :