From 1425b361049cf79536252678aa8678daef90dedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 1 May 2024 12:10:54 +0100 Subject: [PATCH] merge background saves together in profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caolán McNamara Change-Id: I016133f31f34b859dcb21b794406c7e6a1559aa9 --- scripts/profile-cool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/profile-cool b/scripts/profile-cool index d9f0bc3a8..52f8f4663 100755 --- a/scripts/profile-cool +++ b/scripts/profile-cool @@ -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