Profile Python apps with cProfile py spy and scalene
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill performance-profiling --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Performance Profiling?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-performance-profiling)More formats (shields.io, HTML) on the badges page.
---
name: performance-profiling
description: "Profile Python apps with cProfile py spy and scalene"
---
# Performance Profiling
## cProfile
```bash
python -m cProfile -o output.prof myapp.py
python -m pstats output.prof
```
## py-spy (Running Process)
```bash
pip install py-spy
py-spy record -o profile.svg --pid 12345
py-spy top --pid 12345
```
## Scalene
```bash
pip install scalene
scalene myapp.py
```
## What to Profile
- CPU hotspots (cProfile, py-spy)
- Memory allocation (tracemalloc)
- I/O bottlenecks
- Database queries
- API call latency
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!