This is a plugin to run the Python line_profiler from within the Python IDE Spyder.
The code is an adaptation of the profiler plugin integrated in Spyder.
To install this plugin, you can use either pip
or conda
package
managers, as follows:
Using conda (the recommended way!):
conda install spyder-line-profiler -c conda-forge
Using pip:
pip install spyder-line-profiler
Add a @profile
decorator to the functions that you wish to profile then
Shift+F10 (line profiler default) to run the profiler on the current script,
or go to Run > Run line profiler
.
The results will be shown in a dockwidget, grouped by function. Lines with a stronger color take more time to run.
Everyone is welcome to contribute!
Spyder and its subprojects are funded thanks to the generous support of
and the donations we have received from our users around the world through Open Collective: