command-resource-profiler
Installation
SKILL.md
Command Resource Profiler
Use the bundled profiler as the default measurement path:
python <skill-dir>/scripts/profile_command.py --output profile.json -- <command> <args...>
Resolve <skill-dir> to this skill's directory. Keep the target command after -- so its flags are not parsed as profiler flags.
Workflow
- Confirm the exact executable, arguments, working directory, and whether descendants belong to the workload.
- Check that Python and
psutilare available. Ifpsutilis missing, reportpython -m pip install psutil; do not install it without authorization. - Choose a sampling interval. Use
0.2seconds normally,0.05-0.1seconds for short workloads, and0.5-1second for long workloads. - Run at least one warmup and three measured repetitions when comparing performance: