My code allocates continously memory (~12kb per second). With a runtime of 8 hours its a lot of memory!!
Because of this I want to trace the moments/code lines my python code allocates memory.
Something like you can do with processed code lines with:
python -m trace --count -C ./tmp code.py
this generate a view where you can see how often this line was executed. It looks like:
code.cover
1: import sys
1: import os
1534: while 1:
1534: print "foo"
I need this for memory allocation. if possible something like
1245 B import sys
893 B import os
17.46 KB import somecode