perf-profiler

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

perf-profiler

perf-profiler

Run profiling tools and capture hotspots with evidence.
Follow
docs/perf-requirements.md
as the canonical contract.
运行性能分析工具并捕获带证据的热点。
请遵循
docs/perf-requirements.md
作为标准约定。

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>
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.
  • 无明确场景时不得进行性能分析。
  • 保持输出简洁且有证据支持。