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.
- size
See also
Notes
See https://goshippo.com/blog/measure-real-size-any-python-object/