2

I'm trying to track down a possible memory leak in my code, and I want to make sure I'm not leaving stray references to any ndarrays. Does anyone know if it's possible to do something like numpy.who() but for all arrays in memory?

Any other suggestions for finding large memory objects that might be lost would also be appreciated.

Bi Rico
  • 25,283
  • 3
  • 52
  • 75

1 Answers1

1

You could try out Valgrind, although checking Python code with it is not that trivial...

plaes
  • 31,788
  • 11
  • 91
  • 89