Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: tracing/tracing/extras/vsync/vsync_auditor.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/extras/tquery/tquery.html ('k') | tracing/tracing/extras/vsync/vsync_auditor_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
};
« no previous file with comments | « tracing/tracing/extras/tquery/tquery.html ('k') | tracing/tracing/extras/vsync/vsync_auditor_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698