perf工具<h2>原理</h2> <h2>使用</h2> <pre><code class="language-sh">perf top perf top --call-graph fractal # 查看内核占用情况 perf top -U -g # 抽所有 perf record -g -a sleep 3 perf report</code></pre>