# Performance Profiling (Bun/Node) Use this skill when: - a hot path feels slow - CPU usage is high - you suspect accidental O(n²) or repeated work - you need evidence before optimizing ## Bun CPU profiling Bun supports CPU profiling via `--cpu-prof` (generates a `.cpuprofile` you can open in Chrome DevTools). Upcoming: `bun --cpu-prof-md