merge background saves together in profile

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I016133f31f34b859dcb21b794406c7e6a1559aa9
pull/8958/head
Caolán McNamara 2024-05-01 12:10:54 +01:00 committed by Miklos Vajna
parent e9f81f8008
commit 1425b36104
1 changed files with 2 additions and 2 deletions

View File

@ -49,6 +49,6 @@ trap ' ' INT
# note a) perf version 6.4.4 doesn't unmangle c++ names correctly for me, while 6.2.6 does
perf record -F50 --call-graph dwarf,65528 --pid $kitpid
# note b) perf version 5.14.21 is agonizingly slow without --no-inline, while 6.2.6 seems ok
perf script --no-inline | stackcollapse-perf.pl > perf-$kitpid.log
flamegraph.pl perf-$kitpid.log > perf-$kitpid.svg
# merge all the background saves together as kitdbgsv
perf script --no-inline | stackcollapse-perf.pl | sed -E -s "s/^kitbgsv[^;]+/kitbgsv/" | flamegraph.pl > perf-$kitpid.svg
echo generated flamegraph output svg: perf-$kitpid.svg