Measure memory usage in Python

R

Rune Strand

Is there a way to measure how much memory a data structure use? For
instance, what is the footprint of a particular list object like
[0,1,2,3,4,5,6,7,8,9]?
 
G

gene tani

Rune said:
Is there a way to measure how much memory a data structure use? For
instance, what is the footprint of a particular list object like
[0,1,2,3,4,5,6,7,8,9]?

i have a note to try this, but haven't got around to it, if you want to
blog/post

http://pysizer.8325.org/
 
G

gene tani

Rune said:
gene said:
Rune said:
Is there a way to measure how much memory a data structure use? For
instance, what is the footprint of a particular list object like
[0,1,2,3,4,5,6,7,8,9]?

i have a note to try this, but haven't got around to it, if you want to
blog/post

http://pysizer.8325.org/

Thank you! That seems to be what I was looking for.

ok, my notes are disorganized:

http://guppy-pe.sourceforge.net/#Heapy
http://www.softwareverify.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top