Skip to main content

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)

Source distribution for whyslow 0.1.7
File Size Uploaded
whyslow-0.1.7.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whyslow 0.1.7
File Interpreter ABI Platform
whyslow-0.1.7-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page