- solo
- post
python memory leak debugging
ah, yes, the wonders of “automatic memory management”… got off the horn with a good mate and a former colleague who’s struggling with a ugly memory leak in a bit of python code he needs to hammer into shape.
cobbled together the following pointers for him. and it’s quite a shame that there’s a bunch of them too, because none of them are really all that good…
tracemalloc:
also merged upstream into python std lib as of python v3.