Back to skills
SKILL.md
Performance Profiling
ASecurityProfile Python apps with cProfile py spy and scalene
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added September 10, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add LoopyLuci/Skills --skill performance-profiling --agent claude-codeAre you the author of Performance Profiling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-performance-profiling)---
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
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.