heap-snapshot-analysis
A skill from the VS Code repository for investigating memory leaks from V8 heap snapshot files that already exist.
What the skill teaches
A skill from the VS Code repository for investigating memory leaks from V8 heap snapshot files that already exist. It ships TypeScript and Node helpers that parse snapshots (with a streaming route for files near or above 2 GiB), compare a before and an after snapshot by size, count and new object groups, and find the retainer paths that keep an object alive while skipping weak edges. Each investigation gets a dated scratchpad folder with its scripts and a findings file. It also lists retention patterns seen in VS Code's own code and false retainers such as DevTools handles, and assumes Node with a large memory limit.
Capabilities
- Parse large V8 heap snapshots
- Compare before and after snapshots
- Find the retainer paths that keep objects alive
- Record each investigation's findings in a dated folder
About
- Publisher
- Microsoft
- Tool
- Debugging
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- helpers/compareSnapshots.ts
- helpers/findRetainers.ts
- helpers/parseSnapshot.ts
- helpers/streamSnapshot.mjs
- scratchpad/.gitignore
- scratchpad/README.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Debugging | |
| Publisher | Microsoft | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026195,341 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Microsoft
10 servers · 179 skills
- playwright-mcp (MCP server)
- playwright-component-testing (Skill)
- playwright-trace (Skill)
- playwright-cli (Skill)
- Azure MCP Server (MCP server)
- azure-search-nav (Skill)
Also listed under: Debugging
Sources
- Skill file (SKILL.md)github.com/microsoft/vscode · Backs: Includes scriptsNov 14, 2026
- Folder in the repository (skills)github.com/microsoft/vscode · Backs: PublisherNov 15, 2026
- Folder in the repository (heap-snapshot-analysis)github.com/microsoft/vscode · Backs: Includes scriptsNov 14, 2026
- GitHub repositorygithub.com/microsoft/vscode · Backs: Activity, LicenceNov 11, 2026