memory-leak-debug
Installation
SKILL.md
Memory Leak Debugging
Diagnose memory leaks in the Qwen Code Node.js CLI by capturing heap snapshots
and analyzing retained object sizes via chrome-devtools CLI tooling.
Prerequisites
chrome-devtoolsCLI (fromchrome-devtools-mcppackage). If not found, install with:npm i chrome-devtools-mcp@latest -gafter user confirmation. See https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/cli.md- Node.js 22+ (for
--heapsnapshot-signalsupport)
Step 1: Start the CLI with Snapshot Signal
Use tmux so you can interact with the TUI and trigger snapshots from another pane. Use the tmux-real-user-testing helper script: