profiling-recipes

performance-profiler reference

Content Preview
# performance-profiler reference

## Node.js Profiling

### CPU Flamegraph

```bash
# Method 1: clinic.js (best for development)
npm install -g clinic

# CPU flamegraph
clinic flame -- node dist/server.js

# Heap profiler
clinic heapprofiler -- node dist/server.js

# Bubble chart (event loop blocking)
clinic bubbles -- node dist/server.js

# Load with autocannon while profiling
autocannon -c 50 -d 30 http://localhost:3000/api/tasks &
clinic flame -- node dist/server.js
```

```bash
# Method 2: N
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/profiling-recipes.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering/performance-profiler/references/profiling-recipes.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering/performance-profiler/references/profiling-recipes.md

Related Skills