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
Metadata
Release files for whyslow 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whyslow-0.1.7.tar.gz | 3.9 kB | Without provenance | Details for whyslow-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whyslow-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for whyslow-0.1.7-py3-none-any.whl |
Total release size: 8.8 kB
Release files / whyslow-0.1.7.tar.gz
| Download URL | whyslow-0.1.7.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f98da55cd051647b4049303ad7a9e8eafafc6cd5cda19b31ad29525936313eb1
|
|
BLAKE2b-256 checksum How to use checksums |
ef888c65010d0c42e5291dc18c8f5f38d9d0ac4225b56e27c0f2565d5bd9bfee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / whyslow-0.1.7-py3-none-any.whl
| Download URL | whyslow-0.1.7-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cd687b980ea2787819fff618ebf417fb2341dabdfe0823eb05cc636d316e4f8
|
|
BLAKE2b-256 checksum How to use checksums |
fa3a705fed85e7d9e44ab969f1e51c5065c34d15bd3221ba45fb50fe38ee1b1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for whyslow 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.