I know that getsizeof()
is not a reliable indicator of memory, because as the documentation says:
"Only the memory consumption directly attributed to the object is accounted for, not the memory consumption of objects it refers to."
So for a list it doesn't tell you how much RAM is consumed by the objects that those pointers refer to. How can I see how much memory is used by those?
NB: In fine I am trying to compare the memory used by Numpy arrays and lists.