Python program using too much memory? Try Fil, an open source memory profiler

It’s easy to write image processing code that uses too much memory, and back when I was doing that I couldn’t find any good ways to measure where high memory usage was coming from. So I’ve written a new memory profiler for Python designed to:

  1. Be as easy as possible to use: you shouldn’t have to be a software engineer to measure your program’s memory use.
  2. Give you the exact info you need: peak memory use, and which exact lines of code were responsible for it.

You can find an early release of Fil here:

If you have any issues, questions, or problems, please email me ( and I’ll do my best to help.