Developer-friendly performance profiling utility for Python
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
whyslow-0.1.7.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file whyslow-0.1.7.tar.gz
.
File metadata
- Download URL: whyslow-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98da55cd051647b4049303ad7a9e8eafafc6cd5cda19b31ad29525936313eb1 |
|
MD5 | 5afb9d2b5adf1c5d7a6e63f8c001ddc4 |
|
BLAKE2b-256 | ef888c65010d0c42e5291dc18c8f5f38d9d0ac4225b56e27c0f2565d5bd9bfee |
File details
Details for the file whyslow-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: whyslow-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd687b980ea2787819fff618ebf417fb2341dabdfe0823eb05cc636d316e4f8 |
|
MD5 | c1145c1962cca6dcd35d998f4046d454 |
|
BLAKE2b-256 | fa3a705fed85e7d9e44ab969f1e51c5065c34d15bd3221ba45fb50fe38ee1b1b |