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

Side by Side Diff: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html

Issue 1929693002: [polymer] Fixes bad regexp replaces for Polymer.dom(...) (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/statistics.html"> 8 <link rel="import" href="/tracing/base/statistics.html">
9 <link rel="import" href="/tracing/model/event_set.html"> 9 <link rel="import" href="/tracing/model/event_set.html">
10 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html"> 10 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 latency: event.inputLatency / 1000 252 latency: event.inputLatency / 1000
253 }); 253 });
254 }); 254 });
255 255
256 var averageLatency = tr.b.Statistics.mean(latencyData, function(d) { 256 var averageLatency = tr.b.Statistics.mean(latencyData, function(d) {
257 return d.latency; 257 return d.latency;
258 }); 258 });
259 259
260 // Create summary. 260 // Create summary.
261 var latencySummaryText = document.createElement('div'); 261 var latencySummaryText = document.createElement('div');
262 laPolymer.dom(tencySummaryText).appendChild(tr.ui.b.createSpan({ 262 Polymer.dom(latencySummaryText).appendChild(tr.ui.b.createSpan({
263 textContent: 'Average Latency ' + averageLatency + ' ms', 263 textContent: 'Average Latency ' + averageLatency + ' ms',
264 bold: true})); 264 bold: true}));
265 Polymer.dom(resultArea).appendChild(latencySummaryText); 265 Polymer.dom(resultArea).appendChild(latencySummaryText);
266 266
267 var frametimeSummaryText = document.createElement('div'); 267 var frametimeSummaryText = document.createElement('div');
268 Polymer.dom(frametimeSummaryText).appendChild(tr.ui.b.createSpan({ 268 Polymer.dom(frametimeSummaryText).appendChild(tr.ui.b.createSpan({
269 textContent: 'Average Frame Time ' + averageFrametime + ' ms', 269 textContent: 'Average Frame Time ' + averageFrametime + ' ms',
270 bold: true})); 270 bold: true}));
271 Polymer.dom(resultArea).appendChild(frametimeSummaryText); 271 Polymer.dom(resultArea).appendChild(frametimeSummaryText);
272 272
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 reason: 'No InputLatency events trace. Consider enabling ' + 322 reason: 'No InputLatency events trace. Consider enabling ' +
323 'benchmark" and "input" category when recording the trace' 323 'benchmark" and "input" category when recording the trace'
324 }; 324 };
325 }, 325 },
326 326
327 get textLabel() { 327 get textLabel() {
328 return 'Input Latency'; 328 return 'Input Latency';
329 } 329 }
330 }); 330 });
331 </script> 331 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698