| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |