OnCallReadyStart learning

stackcollapse-perf.pl: fold perf script output into one line per unique stack

stackcollapse-perf.pl [options] infile > outfile

What it does

From the FlameGraph repository: turns perf script text into folded stacks for flamegraph.pl.

Options you will use

--pid
include the PID with the process name.
--kernel
annotate kernel functions with _[k].
--all
all annotations.

Examples

$ ./FlameGraph/stackcollapse-perf.pl out.perf > out.folded

fold perf script output

Try stackcollapse-perf.pl in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.