Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sorting by self column in perf report

Tags:

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)

Screenshot

like image 223
Marko Kevac Avatar asked Jul 22 '15 15:07

Marko Kevac


People also ask

What is overhead in perf report?

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.

How do you use perf tools?

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.

What is perf kernel?

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.


1 Answers

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

like image 70
Florent Bruneau Avatar answered Sep 18 '22 16:09

Florent Bruneau