Profiler: reporting function position in flame graphs

This commit is contained in:
Pavel Kirienko 2015-01-16 22:08:46 +03:00 committed by Lorenz Meier
parent ff7c33a4b0
commit 1898b51c74
1 changed files with 1 additions and 1 deletions

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 "")) {