flamegraph

Fork of flamegraph without J***S*****.
git clone git://git.laack.co/flamegraph.git
Log | Files | Refs | README

commit 4bdf60630c2b3657190c535663fe074b5d0f1bc5
parent 208c495509ea4f6648476e48dcd743e1bde90de1
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Tue,  7 Nov 2023 11:29:02 +1100

Simplify regexp in stackcollapse-perf.pl
Diffstat:
Mstackcollapse-perf.pl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl @@ -379,11 +379,11 @@ while (defined($_ = <>)) { # detect jit from the module name; eg: # 7f722d142778 Ljava/io/PrintStream;::print (/tmp/perf-19982.map) if (scalar(@inline) > 0) { - $func .= "_[i]" unless $func =~ m/.*.\_\[i\]/; # inlined + $func .= "_[i]" unless $func =~ m/\_\[i\]/; # inlined } elsif ($annotate_kernel == 1 && $mod =~ m/(^\[|vmlinux$)/ && $mod !~ /unknown/) { $func .= "_[k]"; # kernel } elsif ($annotate_jit == 1 && $mod =~ m:/tmp/perf-\d+\.map:) { - $func .= "_[j]" unless $func =~ m/.*.\_\[j\]/; # jitted + $func .= "_[j]" unless $func =~ m/\_\[j\]/; # jitted } #