自动驱动 VS Code 性能与内存排查,生成可复现分析结果与对比证据。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "auto-perf-optimize" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/auto-perf-optimize/SKILL.md 2. 保存为 ~/.claude/skills/auto-perf-optimize/SKILL.md 3. 装好后重载技能,告诉我可以用了
请启动 Code OSS,自动执行我描述的 VS Code 操作场景,记录关键步骤并在结束后抓取 renderer heap snapshot,用于分析内存增长来源。
一次可复现的操作流程、执行记录以及可用于内存分析的堆快照文件。
请分别运行两次相同的 VS Code 场景,汇总每次运行结果,并对比性能指标、截图和异常差异,指出可能的回归点。
两次运行的对比摘要,包含指标差异、关键截图和疑似性能回归结论。
请运行 Chat memory smoke runner,完成指定测试流程,保存过程截图,并输出是否存在明显内存异常或泄漏迹象的结论。
冒烟测试执行结果、流程截图,以及对内存异常风险的简要判断。
Drive a repeatable VS Code scenario, collect memory/performance artifacts, verify that the scenario actually happened, then hand the resulting heap snapshots to the generic heap-snapshot-analysis skill when object-level investigation is needed.
summary.json, renderer heap samples, and targeted .heapsnapshot files for one scenarioDo not use this skill when snapshots already exist and the user only wants heap object/retainer analysis. Use heap-snapshot-analysis directly.
@playwright/cli to the same CDP port, take workspace-local screenshots, inspect snapshots, and update the runner's selectors/waits.summary.json and screenshots. Do not analyze a failed login, trust prompt, stuck progress row, or wrong UI state.The scripts/ folder contains stable, generic runners. Use them directly or as templates for scratchpad scripts:
Use the bundled Chat memory smoke runner when the scenario is Chat-specific or can be expressed as repeated Chat prompts. It launches Code OSS, opens Chat, sends prompts, waits for responses, writes screenshots and summary.json, samples renderer heap, and can take selected heap snapshots.
Fast health check:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 3 --no-heap-snapshots
Targeted post-warmup snapshots:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
User-described Chat scenario:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --message 'For memory investigation iteration {iteration}, summarize the active workspace in one paragraph.' --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
Important runner behavior:
…
帮助开发者定位并读取 Code OSS 开发构建日志,快速排查运行与扩展问题。
帮助开发者新增、修改或审查 VS Code 配置策略,并生成平台相关产物。
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
帮助开发者创建和维护组件截图测试夹具,并优化组件的可测试性。
自动启动并操控 VS Code Insiders 与 Copilot Chat,完成界面测试、聊天交互和截图。
帮助用户在本地启动 vscode.dev 并测试 VS Code 工作台与 Agents 窗口。
帮助开发者为代码代理配置性能优化、安全防护与研究优先工作流。
对本地或PR分支执行结构化代码审查,帮助提交或发布前发现问题。
帮助开发者在 VS Code 仓库中运行、筛选并调试单元测试。
用真实设备与浏览器测量网页性能,帮助定位加载与交互瓶颈。