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)
Sampling with perf record The report contains 4 columns, which have their own specific meaning: Overhead: the percentage of overall samples collected in the corresponding function. Command: the command to which the samples belong.
The perf tool is in the linux-tools-common package. Start by adding that, then running "perf" to see if you get the USAGE message. It may tell you to install another related package (linux-tools-kernelversion). You can also build and add perf from the Linux kernel source.
perf (sometimes called perf_events or perf tools, originally Performance Counters for Linux, PCL) is a performance analyzing tool in Linux, available from Linux kernel version 2.6.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With