Skip to content
Back to skills

Performance Profiling

ASecurity

Profile Python apps with cProfile py spy and scalene

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
ai-agentspythonbashapidatabaseperformance

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill performance-profiling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Profiling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performance Profiling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-performance-profiling/badge)](https://www.skillsdirectory.com/skills/loopyluci-performance-profiling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.