diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2015-01-16 22:08:46 +0300 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-21 14:54:23 +0100 |
commit | 1898b51c740dba2b3dd979980775f25c982dea1e (patch) | |
tree | 3841b402c640232f17945fa5e264bc007c661a1e | |
parent | ff7c33a4b04e0545dc78a324cbc8f9a945f97519 (diff) | |
download | px4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.tar.gz px4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.tar.bz2 px4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.zip |
Profiler: reporting function position in flame graphs
-rwxr-xr-x | Debug/poor-mans-profiler.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Debug/poor-mans-profiler.sh b/Debug/poor-mans-profiler.sh index 2b2533756..460b28d0a 100755 --- a/Debug/poor-mans-profiler.sh +++ b/Debug/poor-mans-profiler.sh @@ -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 "")) { |