Skip to content

This is a plugin to run the python memory_profiler from within the spyder editor.

License

Notifications You must be signed in to change notification settings

jitseniesen/spyder-memory-profiler

 
 

Repository files navigation

spyder-memory-profiler

Project information

OpenCollective Backers OpenCollective Sponsors

Build information

https://travis-ci.org/spyder-ide/spyder-memory-profiler.svg?branch=master https://ci.appveyor.com/api/projects/status/gd88722qallyheoe/branch/master?svg=true https://circleci.com/gh/spyder-ide/spyder-memory-profiler/tree/master.svg?style=shield https://coveralls.io/repos/github/spyder-ide/spyder-memory-profiler/badge.svg?branch=master https://scrutinizer-ci.com/g/spyder-ide/spyder-memory-profiler/badges/quality-score.png?b=master

Important Announcement: Spyder is unfunded!

Since mid November/2017, [Anaconda, Inc](https://www.anaconda.com/) has stopped funding Spyder development, after doing it for the past 18 months. Because of that, development will focus from now on maintaining Spyder 3 at a much slower pace than before.

If you want to contribute to maintain Spyder, please consider donating at

https://opencollective.com/spyder

We appreciate all the help you can provide us and can't thank you enough for supporting the work of Spyder devs and Spyder development.

If you want to know more about this, please read this [page](https://github.com/spyder-ide/spyder/wiki/Anaconda-stopped-funding-Spyder).

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.

Install instructions

The memory-profiler plugin is available in the spyder-ide channel in Anaconda and in PyPI, so it can be installed with the following commands:

  • Using Anaconda: conda install -c spyder-ide spyder-memory-profiler
  • Using pip: pip install spyder-memory-profiler

All dependencies will be automatically installed. You have to restart Spyder before you can use the plugin.

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

Contributing

Everyone is welcome to contribute!

Backers

Support us with a monthly donation and help us continue our activities.

Backers

Sponsors

Become a sponsor to get your logo on our README on Github.

Sponsors

About

This is a plugin to run the python memory_profiler from within the spyder editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • Shell 2.9%