What problem does it solve?
This Skill eliminates the complex, time-consuming manual analysis of CPU profiles. It automatically identifies performance bottlenecks, high garbage collection, and excessive JS/WASM boundary crossing, making optimization efforts faster and more targeted.
Core Features & Use Cases
- Automated Bottleneck Detection: Pinpoints CPU hotspots, memory allocation issues, and marshaling overhead in your code.
- WASM Debugging Enhancement: Enriches CPU profiles with detailed WebAssembly function symbols and offers disassembly for critical WASM functions.
- Actionable Optimization Recommendations: Provides specific, data-driven suggestions to improve code efficiency and reduce execution time.
- Use Case: After running a benchmark, you suspect a performance regression. Use this Skill to analyze the CPU profile, quickly identify the exact WASM function or JavaScript operation causing the slowdown, and receive clear guidance on how to optimize it, saving days of manual debugging and analysis.
Quick Start
First, collect a CPU profile for the 'simple-object' scenario using the command: SCENARIO=simple-object npm run profile:cpu. Then, analyze the generated profile by asking me to 'analyze the latest CPU profile for simple-object parsing and provide optimization recommendations'.