SkillAgentSearch skills...

Whyslow

Developer-friendly performance profiling utility for Python

Install / Use

/learn @valentinstn/Whyslow
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center">WhySlow 🐌</h1> <p align="center"> <em>Developer-friendly performance profiling utility for Python</em> </p>

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.

<p align="center"> <a href="https://github.com/valentinstn/whyslow/raw/main/flamechart.png"> <img width="400px" src="https://github.com/valentinstn/whyslow/raw/main/flamechart.png"> </a> </p>

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

Related Skills

View on GitHub
GitHub Stars28
CategoryDevelopment
Updated17d ago
Forks0

Languages

Python

Security Score

95/100

Audited on Mar 15, 2026

No findings