aboutsummaryrefslogtreecommitdiff
path: root/Debug
diff options
context:
space:
mode:
authorPavel Kirienko <pavel.kirienko@gmail.com>2015-01-16 22:08:46 +0300
committerLorenz Meier <lm@inf.ethz.ch>2015-01-21 14:54:23 +0100
commit1898b51c740dba2b3dd979980775f25c982dea1e (patch)
tree3841b402c640232f17945fa5e264bc007c661a1e /Debug
parentff7c33a4b04e0545dc78a324cbc8f9a945f97519 (diff)
downloadpx4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.tar.gz
px4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.tar.bz2
px4-firmware-1898b51c740dba2b3dd979980775f25c982dea1e.zip
Profiler: reporting function position in flame graphs
Diffstat (limited to 'Debug')
-rwxr-xr-xDebug/poor-mans-profiler.sh2
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 "")) {