Agent Skills
› agent-sh/agentsys
› perf-profiler
perf-profiler
GitHub用于性能分析,执行CPU/内存热点探查、生成火焰图或捕获JFR/perf证据。需遵循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


