What problem does it solve? Slow applications and hidden memory leaks are hard to diagnose without systematic profiling. This Skill provides a structured workflow for capturing CPU profiles, detecting memory leaks, benchmarking code, and analyzing slow database queries. ## Core Features & Use Cases - CPU & Flamegraph Analysis: Use Node.js --prof, Clinic.js, and Chrome DevTools to find hot functions consuming the most time. - Memory Leak Detection: Compare heap snapshots, track detached DOM nodes, and monitor GC frequency to locate leaks from listeners, timers, and closures. - Benchmarking & Database Profiling: Run Benchmark.js, autocannon, and wrk load tests, plus EXPLAIN ANALYZE for PostgreSQL and MongoDB query profiling. - Use Case: Your Node.js API latency spikes under load. Use this Skill to capture a CPU profile with Clinic.js, identify the hot function in the flamegraph, optimize it, and verify the improvement with autocannon. ## Quick Start Profile my Node.js application for CPU bottlenecks and memory leaks, then suggest optimizations based on the flamegraph analysis.