简体   繁体   中英

Sorting by self column in perf report

How do I sort by self column in perf report output?

$ 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

Data was callected with

$ perf record -g -p $(pidof node)

截图

By default, perf receives the --children parameter which creates the "children overhead view". As a consequence, you can switch back to a "self overhead" view by simply specifying the --no-children switch

perf report --no-children

There is a discussion on this topic in the man page man perf-report

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM