What problem does it solve?
Investigating memory leaks in Chromium-based applications requires parsing large, opaque heap snapshot files, which is slow and error-prone without dedicated tooling. This Skill provides a structured CLI workflow to summarize, diff, and inspect heap snapshots so you can pinpoint leaking objects and their retainers.
Core Features & Use Cases
- Heap Summaries: Get high-level statistics on total heap size, V8 heap breakdown (code, strings, arrays), and native memory.
- Snapshot Diffing: Compare a baseline snapshot against a later one to identify which object classes are growing in count and size.
- Object & Retainer Inspection: List objects by class (e.g., Detached DOM nodes), inspect individual objects by ID, and trace retainer chains to understand why objects stay alive.
- Use Case: After noticing your Electron app's memory grows with each window open, capture snapshots before and after, run a diff to find growing classes, then inspect retainers to find the event listener keeping objects alive.
Quick Start
Ask the AI to analyze a heap snapshot file by running a summary and diff against a baseline to identify which objects are leaking.