关于 perf-profiler
用于运行性能分析工具并记录热点及证据的技能,面向调查明确性能场景的开发者,输出保持简洁。
主要功能
- 01运行指定的分析工具和命令
- 02要求先验证调试符号
- 03记录热点文件与行号
- 04尽可能提供火焰图或等效结果
适用场景
- 01分析明确的性能场景
- 02定位并记录代码热点
- 03为性能调查收集证据
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ agent-sh/ agentsys --skill perf-profiler安装后在 Claude Code 中输入/perf-profiler确认已加载。
详细介绍
perf-profiler
运行性能分析工具,并提供证据以捕获热点。
请将 docs/perf-requirements.md 视为规范性约定。
解析参数
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const tool = args[0] || '';
const command = args.slice(1).join(' ');
必须遵守的规则
- 性能分析前,先验证调试符号。
- 记录热点对应的文件和行号。
- 尽可能提供火焰图或等效输出。
输出格式
tool: <profiler>
command: <command>
hotspots:
- file:line - reason
artifacts:
- <path to flame graph or profile>
限制
- 没有明确的场景时,不进行性能分析。
- 保持输出精简,并以证据为依据。
评论
支持 Markdown