自动驱动 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:
…
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
帮助开发者为代码代理配置性能优化、安全防护与研究优先工作流。