heap-snapshot-analysis
A skill from the VS Code repository for investigating memory leaks from V8 heap snapshot files that already exist.
スキルの内容
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.
できること
- 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
概要
- 公開元
- Microsoft
- ツール
- デバッグ
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- helpers/compareSnapshots.ts
- helpers/findRetainers.ts
- helpers/parseSnapshot.ts
- helpers/streamSnapshot.mjs
- scratchpad/.gitignore
- scratchpad/README.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
出典
- スキルファイル(SKILL.md)github.com/microsoft/vscode · 根拠となる項目:スクリプトを含む2026年11月14日
- リポジトリ内のフォルダ(skills)github.com/microsoft/vscode · 根拠となる項目:公開元2026年11月15日
- リポジトリ内のフォルダ(heap-snapshot-analysis)github.com/microsoft/vscode · 根拠となる項目:スクリプトを含む2026年11月14日
- GitHubリポジトリgithub.com/microsoft/vscode · 根拠となる項目:活動状況, ライセンス2026年11月11日