summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-04-17 22:14:16 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-04-19 23:51:26 +0100
commit4959b3b21cafd045892104476171646e3de952d3 (patch)
tree01860c73be810bf4a502f8341960ebe050453145 /scripts
parentUpdate bundled headers with profiling enum (diff)
downloadonline-4959b3b21cafd045892104476171646e3de952d3.tar.gz
online-4959b3b21cafd045892104476171646e3de952d3.zip
perftrace: fix time parsing issue.
Change-Id: If0987454e3aa747aa476fa4e0ec8070a95e92867
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/perftrace.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/perftrace.pl b/scripts/perftrace.pl
index 8c8d692917..12f2a409b1 100755
--- a/scripts/perftrace.pl
+++ b/scripts/perftrace.pl
@@ -168,7 +168,7 @@ sub consume($$$$$$$$$)
$time = $time - $dur_us;
push @events, "{\"pid\":$pid, \"tid\":$tid, \"ts\":$time, \"dur\":$dur_us, \"ph\":\"X\", \"name\":\"$msg\", \"args\":{ \"ms\":$dur_ms } }";
} else {
- die "Unknown prof message: '$message'";
+ die "Unknown prof message: '$message' at line $lineno";
}
return;
}
@@ -261,7 +261,7 @@ sub parseProfileFrames($$$$$)
# print STDERR "Profile frame '$line'\n";
# FIXME: silly to complicate and then re-parse this I guess ...
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($secs);
- my $time = sprintf("%.2d:%.2d:%02.6f", $hour, $min, "$sec.$fractsecs");
+ my $time = sprintf("%.2d:%.2d:%09.6f", $hour, $min, "$sec.$fractsecs");
# print STDERR "time '$time' from '$secs' - " . time() . "\n";
consume($lineno, $proc, $pid, $tid, $time, $emitter, 'PROF', $realmsg, '');
}