Which Python memory profiler is recommended? [closed]

Answer

down vote accepted

Heapy is quite simple to use. At some point in your code, you have to write the following:

from guppy import hpy
h = hpy()print h.heap()

This gives you some output like this:

Partition of a set of 132527 objects.Total size =8301532 bytes.IndexCount%Size%Cumulative%Kind(class/ dict of class)03514427214041226214041226 str
13839729130902016344943242 tuple
253007398569418928850 dict (no owner)

All python Questions

Ask your interview questions on python

Write Your comment or Questions if you want the answers on python from python Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---