diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-07-19 10:28:23 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-09-14 12:48:32 +0100 |
commit | 218fa79fdcf0d47dfd34eccbaf827d4224ed28d8 (patch) | |
tree | b1b29a55e89d485d73df7972a3172da97d52115e /scripts | |
parent | 468febc4c746f168e885e0d662ec3adb0cca60f6 (diff) |
trace.pl: Fix frequency timeline
Frequency timeline needs to be finished with an entry spanning to the end
of known time so that the last known frequency is displayed.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/trace.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/trace.pl b/scripts/trace.pl index 1924333e..2976cfdf 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -1201,6 +1201,8 @@ foreach my $key (sort sortQueue keys %db) { last if $i > $max_items; } +push @freqs, [$prev_freq_ts, $last_ts, $prev_freq] if $prev_freq; + foreach my $item (@freqs) { my ($start, $end, $freq) = @$item; my $startend; |