mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Profiler: reporting function position in flame graphs
This commit is contained in:
committed by
Lorenz Meier
parent
ff7c33a4b0
commit
1898b51c74
@@ -119,7 +119,7 @@ my $current = "";
|
|||||||
my %stacks;
|
my %stacks;
|
||||||
while(<>) {
|
while(<>) {
|
||||||
if(m/^#[0-9]*\s*0x[a-zA-Z0-9]*\s*in (.*) at (.*)/) {
|
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; }
|
if ($current eq "") { $current = $x; }
|
||||||
else { $current = $x . ";" . $current; }
|
else { $current = $x . ";" . $current; }
|
||||||
} elsif(!($current eq "")) {
|
} elsif(!($current eq "")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user