OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2017 The Chromium Authors. All rights reserved. | 3 Copyright 2017 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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
9 <link rel="import" href="/tracing/extras/chrome/estimated_input_latency.html"> | 9 <link rel="import" href="/tracing/extras/chrome/estimated_input_latency.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 .findIntersection(rendererHelper.mainThread.bounds); | 102 .findIntersection(rendererHelper.mainThread.bounds); |
103 interactiveHistogram.addSample( | 103 interactiveHistogram.addSample( |
104 tr.e.chrome.maxExpectedQueueingTimeInSlidingWindow( | 104 tr.e.chrome.maxExpectedQueueingTimeInSlidingWindow( |
105 interactiveWindow.min, interactiveWindow.max, | 105 interactiveWindow.min, interactiveWindow.max, |
106 WINDOW_SIZE_MS, tasks)); | 106 WINDOW_SIZE_MS, tasks)); |
107 } | 107 } |
108 values.addHistogram(totalHistogram); | 108 values.addHistogram(totalHistogram); |
109 values.addHistogram(interactiveHistogram); | 109 values.addHistogram(interactiveHistogram); |
110 } | 110 } |
111 | 111 |
112 tr.metrics.MetricRegistry.register(estimatedInputLatency); | 112 tr.metrics.MetricRegistry.register(estimatedInputLatency, { |
| 113 histogramNames: new Set(), |
| 114 }); |
113 | 115 |
114 return { | 116 return { |
115 estimatedInputLatency, | 117 estimatedInputLatency, |
116 }; | 118 }; |
117 }); | 119 }); |
118 </script> | 120 </script> |
OLD | NEW |