This is a plugin to run the python memory_profiler from within the spyder editor.
Python
Latest commit 4da1b4c Sep 6, 2016 @Nodd Nodd Update README

README.rst

spyder.memory_profiler

Description

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.

Important

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).

Install instructions

See https://github.com/spyder-ide/spyder/wiki/User-plugins, but in short:

pip install spyder.memory_profiler

Usage

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).