Profiler: reporting function position in flame graphs

This commit is contained in:
Pavel Kirienko
2015-01-21 14:54:23 +01:00
committed by Lorenz Meier
parent ff7c33a4b0
commit 1898b51c74
+1 -1
View File
@@ -119,7 +119,7 @@ my $current = "";
my %stacks;
while(<>) {
if(m/^#[0-9]*\s*0x[a-zA-Z0-9]*\s*in (.*) at (.*)/) {
my $x = $1 eq "None" ? basename($2) : $1;
my $x = $1 eq "None" ? basename($2) : ("$1 at " . basename($2));
if ($current eq "") { $current = $x; }
else { $current = $x . ";" . $current; }
} elsif(!($current eq "")) {