This is a plugin to run the python memory_profiler from within the python IDE spyder.
The code is an adaptation of the profiler plugin integrated in spyder.
Spyder plugin support will be released with version 3.0 (Still in Beta).
If you want to try out this plugin you need to use the latest development version of Spyder (master branch).
See https://github.com/spyder-ide/spyder/wiki/User-plugins, but in short:
pip install spyder.memory_profiler
Add a @profile
decorator to the functions that you wish to profile then Ctrl+Shift+F10 to run the profiler on the current script, or go to Run > Profile memory line by line
.
The results will be shown in a dockwidget, grouped by function. Lines with a stronger color have the largest increments in memory usage (memory profiler).