如何按输出中的self列排序perf report?
$ 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
Run Code Online (Sandbox Code Playgroud)
数据是用
$ perf record -g -p $(pidof node)
Run Code Online (Sandbox Code Playgroud)
小智 15
默认情况下,perf接收--children创建"子开销视图" 的参数.因此,您只需指定--no-children开关即可切换回"自我开销"视图
perf report --no-children
手册页中有关于此主题的讨论 man perf-report