| Index: tracing/tracing/extras/vsync/vsync_auditor.html
|
| diff --git a/tracing/tracing/extras/vsync/vsync_auditor.html b/tracing/tracing/extras/vsync/vsync_auditor.html
|
| index 23905e17cee4ee64f5bd92c4eec78d8f6894d6e3..2d450a953ccb865aaea4574ccf69b1d89206c21d 100644
|
| --- a/tracing/tracing/extras/vsync/vsync_auditor.html
|
| +++ b/tracing/tracing/extras/vsync/vsync_auditor.html
|
| @@ -10,6 +10,18 @@ found in the LICENSE file.
|
| <script>
|
| 'use strict';
|
|
|
| +function filterDuplicateTimestamps(timestamps) {
|
| + var dedupedTimestamps = [];
|
| + var lastTs = 0;
|
| + for (var ts of timestamps) {
|
| + if (ts - lastTs >= 1) {
|
| + dedupedTimestamps.push(ts);
|
| + lastTs = ts;
|
| + }
|
| + }
|
| + return dedupedTimestamps;
|
| +}
|
| +
|
| tr.exportTo('tr.e.audits', function() {
|
|
|
| var VSYNC_COUNTER_PRECISIONS = {
|
| @@ -31,7 +43,7 @@ tr.exportTo('tr.e.audits', function() {
|
| };
|
|
|
| var BEGIN_FRAME_SLICE_PRECISION = {
|
| - 'Scheduler::BeginFrame': 10
|
| + 'DisplayScheduler::BeginFrame': 10
|
| };
|
|
|
| /**
|
| @@ -115,7 +127,7 @@ tr.exportTo('tr.e.audits', function() {
|
| }
|
| }
|
| times.sort(function(x, y) { return x - y; });
|
| - return times;
|
| + return filterDuplicateTimestamps(times);
|
| }
|
| };
|
|
|
|
|