Skip to content

Developer-friendly performance profiling utility for Python

License

Notifications You must be signed in to change notification settings

valentinstn/whyslow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhySlow 🐌

Developer-friendly performance profiling utility for Python

WhySlow simplifies the usage of cProfile and snakeviz. It offers the fastest way to get from slow code to flame chart and start the performance optimization investigations.

Installation

pip install whyslow

Usage

There are three ways to use this profiler.

As decorator to profile a function call

from whyslow import profile

@profile()
def my_slow_function():
    # do expensive operations

As context manager to profile any code

from whyslow import profile

with profile():
    # some expensive operations

As module to profile a script

$ python -m whyslow my-slow-script.py

License

MIT License

About

Developer-friendly performance profiling utility for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages