Syntax highlighting of
65f8f54 ~( linux/performance)
= Производительность =
== Flame-графики ==
{{{#!highlight bash
sudo apt install linux-tools-generic
sudo perf record -F 49 -a -g -- sleep 30
perf script --header > out.stacks
git clone https://github.com/brendangregg/FlameGraph
cd FlameGraph
./stackcollapse-perf.pl < ../out.stacks | ./flamegraph.pl --hash > out.svg
sudo perf trace -s -p 10469
sudo perf record -F 49 -a -g -p 10469 -- sleep 10; sudo perf script --header > out.stacks
git clone https://github.com/brendangregg/FlameGraph; cd FlameGraph
./stackcollapse-perf.pl < ../out.stacks | ./flamegraph.pl --hash > out.svg
}}}