python-profiling
Installation
SKILL.md
Python Profiling Skill
Use this skill when investigating CPU time, wall-clock latency, Python allocations, process memory, object growth, or interpreter-level events. Choose the narrowest tool that can answer the question instead of running every profiler by default.
Repository setup and baseline
The examples target the Python version in python/.python-version and use the virtual environment described in python/README.md:
cd python
pyenv install "$(cat .python-version)" # only if that version is not installed
pyenv local
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Run an unprofiled baseline before changing code: