在perf报告中按自列排序

Mar*_*vac 15 linux perf

如何按输出中的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

  • 只有最近的手册页才有这个讨论.我的版本没有提到事件 - 没有孩子(只有 - 孩子).答案是对的,谢谢! (4认同)