我该如何在perf report输出中按self列排序?$ perf --version perf version 4.0.8-300.fc22.x86_64 $ uname -a Linux marko-desktop 4.0.8-300.fc22.x86_64 #1 SMP Fri Jul 10 21:04:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 数据是通过收集得到的$ perf record -g -p $(pidof node)
默认情况下,perf 接收 --children 参数,创建 "子进程开销视图"。因此,您只需指定 --no-children 开关即可切换回 "自身开销" 视图。 perf report --no-children 在手册页 man perf-report 中讨论了这个话题。