profiling
Installation
SKILL.md
性能分析
概述
CPU/内存分析、火焰图、追踪技能。
perf 工具
基础命令
# 安装
apt install linux-tools-common linux-tools-$(uname -r)
# CPU 采样
perf record -g -p PID
perf record -g -a -- sleep 30
# 查看报告
perf report
perf report --stdio
Related skills
CPU/内存分析、火焰图、追踪技能。
# 安装
apt install linux-tools-common linux-tools-$(uname -r)
# CPU 采样
perf record -g -p PID
perf record -g -a -- sleep 30
# 查看报告
perf report
perf report --stdio