Agent Skills
› agent-sh/agentsys
› perf-profiler
perf-profiler
GitHub用于CPU/内存性能分析,生成火焰图或捕获JFR/perf证据。验证调试符号,定位热点代码并输出结构化报告,确保结果有据可查且最小化输出。
Trigger Scenarios
需要分析CPU或内存热点路径时
要求生成火焰图或性能分析证据时
Install
npx skills add agent-sh/agentsys --skill perf-profiler -g -y
SKILL.md
Frontmatter
{
"name": "perf-profiler",
"version": "5.1.0",
"description": "Use when profiling CPU\/memory hot paths, generating flame graphs, or capturing JFR\/perf evidence.",
"argument-hint": "[tool] [command]"
}
perf-profiler
Run profiling tools and capture hotspots with evidence.
Follow docs/perf-requirements.md as the canonical contract.
Parse Arguments
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const tool = args[0] || '';
const command = args.slice(1).join(' ');
Required Rules
- Verify debug symbols before profiling.
- Capture file:line for hotspots.
- Provide flame graph or equivalent output when possible.
Output Format
tool: <profiler>
command: <command>
hotspots:
- file:line - reason
artifacts:
- <path to flame graph or profile>
Constraints
- No profiling without a clear scenario.
- Keep outputs minimal and evidence-backed.
Version History
- a92c0cb Current 2026-07-25 11:25


