Add performance workflow and heap-snapshot-analysis skills#308834
Merged
roblourens merged 5 commits intomainfrom Apr 9, 2026
Merged
Add performance workflow and heap-snapshot-analysis skills#308834roblourens merged 5 commits intomainfrom
roblourens merged 5 commits intomainfrom
Conversation
Add two agent skills for memory/performance investigations: - vscode-performance-workflow: Drives repeatable VS Code scenarios, captures heap snapshots, and includes bundled chat smoke runners (chat-memory-smoke, chat-session-switch-smoke). - heap-snapshot-analysis: Parses V8 heap snapshots, compares before/after, and traces retainer paths. Both skills include scratchpad folders (gitignored) for one-off investigation scripts organized in dated subfolders with findings.md. (Written by Copilot)
Contributor
There was a problem hiding this comment.
Pull request overview
Adds two new agent skills intended to support repeatable VS Code performance/memory investigations and V8 heap snapshot analysis, along with Playwright-based smoke runners and helper modules for snapshot parsing/diffing/retainer-path tracing.
Changes:
- Introduces a “vscode-performance-workflow” skill with documented investigation workflow plus bundled automation runners (chat memory smoke + session switching) and a user-data profile utility.
- Introduces a “heap-snapshot-analysis” skill with helpers to parse heap snapshots, compare before/after snapshots, and trace retainer paths, plus a scratchpad convention.
- Adds a standalone
scripts/chat-memory-smoke.mtsrunner at repo root.
Show a summary per file
| File | Description |
|---|---|
| scripts/chat-memory-smoke.mts | Adds a repo-root Playwright+CDP chat memory smoke runner that collects heap metrics and optional heap snapshots. |
| .github/skills/vscode-performance-workflow/SKILL.md | Documents the end-to-end performance workflow and how to use the bundled runners/scratchpad. |
| .github/skills/vscode-performance-workflow/scripts/chat-memory-smoke.mts | Adds a skill-scoped chat memory smoke runner with shared persistent profile + seed-copy support. |
| .github/skills/vscode-performance-workflow/scripts/chat-session-switch-smoke.mts | Adds a skill-scoped runner that creates multiple chat sessions and repeatedly switches between them while sampling heap. |
| .github/skills/vscode-performance-workflow/scripts/userDataProfile.mts | Adds a utility to prepare/copy user-data profiles (including seed-copy with cache/log exclusions). |
| .github/skills/vscode-performance-workflow/scratchpad/README.md | Documents scratchpad structure and usage tips for one-off investigations. |
| .github/skills/vscode-performance-workflow/scratchpad/.gitignore | Git-ignores scratchpad contents while keeping README/.gitignore. |
| .github/skills/heap-snapshot-analysis/SKILL.md | Documents snapshot analysis workflow and how to use helper modules. |
| .github/skills/heap-snapshot-analysis/helpers/parseSnapshot.ts | Adds a heap snapshot parser and graph builder for traversal/retainer analysis. |
| .github/skills/heap-snapshot-analysis/helpers/compareSnapshots.ts | Adds snapshot comparison (grouped by constructor) and console reporting helpers. |
| .github/skills/heap-snapshot-analysis/helpers/findRetainers.ts | Adds direct-retainer and retainer-path search utilities. |
| .github/skills/heap-snapshot-analysis/scratchpad/README.md | Documents scratchpad conventions and example imports for analysis scripts. |
| .github/skills/heap-snapshot-analysis/scratchpad/.gitignore | Git-ignores scratchpad contents while keeping README/.gitignore. |
Copilot's findings
- Files reviewed: 13/13 changed files
- Comments generated: 11
.github/skills/auto-perf-optimize/scripts/chat-session-switch-smoke.mts
Outdated
Show resolved
Hide resolved
.github/skills/heap-snapshot-analysis/helpers/compareSnapshots.ts
Outdated
Show resolved
Hide resolved
(Written by Copilot)
Contributor
Screenshot ChangesBase: Changed (82)Added (8) |
dmitrivMS
approved these changes
Apr 9, 2026
benvillalobos
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add two agent skills for driving memory/performance investigations:
vscode-performance-workflowDrives repeatable VS Code scenarios, captures renderer heap snapshots, and provides bundled automation runners:
The skill documents the full workflow: define scenario → develop automation → fast smoke → targeted snapshots → verify → analyze → fix → document. Includes guidance on safety (real machine, not sandboxed), auth/profile management, agent-browser observation, and scratchpad organization.
heap-snapshot-analysisParses V8 heap snapshots, compares before/after, and traces retainer paths. Provides helper modules:
Scratchpad convention
Both skills include gitignored
scratchpad/folders for one-off investigation scripts, organized in dated subfolders (YYYY-MM-DD-short-description/) with afindings.mddocumenting all ideas, decisions, and outcomes.(Written by Copilot)