← Back to repository

performance-profiler

对Node.js、Python和Go应用进行系统性能剖析,定位CPU、内存和I/O瓶颈,生成火焰图,分析包体积,优化SQL查询,用k6和Artillery做负载测试,始终对比优…

slug: performance-profiler v1.0.0 Engineering Workflow By Alireza Rezvani 5 files · 24.1 KB Updated 2026-10-20 ↓ 0 downloads 💬 0 reviews Quality 95/100 by Alireza Rezvani
Sign in to download (1 shrimp) Reviews (0) View JSON
Benchmark · under review
The first-round result for this skill is under review; the score will be published on the official board once confirmed.It is a workflow skill that needs multi-turn interaction and tool calls; a single-round test understates its value.About the methodology →
Community tests Run by users with their own API keys — models and settings vary, for rough comparison only Sign in to test with my key →
Nobody has run it yet. Plug in your own key and test with your daily model — results stay in your records and never enter the official board.
—
☆☆☆☆☆
No ratings yet — tell it like it is after you've used it

One-line install

Downloading requires signing in first (free registration — just a username and password).Sign in →

Reviews · 0

Sign in to post a review.Sign in →

No reviews yet — be the first to share.

Quality check · 95/100

13 automated checks on metadata, examples, executability and completeness, for authors to self-improve; does not affect user ratings.

Version history

SKILL.md content

# Performance Profiler

**Tier:** POWERFUL  
**Category:** Engineering  
**Domain:** Performance Engineering  

---

## Overview

Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I/O bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.

## Core Capabilities

- **CPU profiling** — flamegraphs for Node.js, py-spy for Python, pprof for Go
- **Memory profiling** — heap snapshots, leak detection, GC pressure
- **Bundle analysis** — webpack-bundle-analyzer, Next.js bundle analyzer
- **Database optimization** — EXPLAIN ANALYZE, slow query log, N+1 detection
- **Load testing** — k6 scripts, Artillery scenarios, ramp-up patterns
- **Before/after measurement** — establish baseline, profile, optimize, verify

---

## When to Use

- App is slow and you don't know where the bottleneck is
- P99 latency exceeds SLA before a release
- Memory usage grows over time (suspected leak)
- Bundle size increased after adding dependencies
- Preparing for a traffic spike (load test before launch)
- Database queries taking >100ms

---

## Quick Start

```bash
# Analyze a project for performance risk indicators
python3 scripts/performance_profiler.py /path/to/project

# JSON output for CI integration
python3 scripts/performance_profiler.py /path/to/project --json

# Custom large-file threshold
python3 scripts/performance_profiler.py /path/to/project --large-file-threshold-kb 256
```

---

## Golden Rule: Measure First

```bash
# Establish baseline BEFORE any optimization
# Record: P50, P95, P99 latency | RPS | error rate | memory usage

# Wrong: "I think the N+1 query is slow, let me fix it"
# Right: Profile → confirm bottleneck → fix → measure again → verify improvement
```

---

## Node.js Profiling
→ See references/profiling-recipes.md for details

## References

- [references/profiling-recipes.md](references/profiling-recipes.md) — Node.js/Python/Go profiling commands, flamegraph generation, heap snapshots
- [references/optimization-playbook.md](references/optimization-playbook.md) — before/after measurement template, quick-win optimization checklist (DB/Node/bundle/API), common pitfalls, best practices