OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 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/metrics/metric_registry.html"> | 8 <link rel="import" href="/tracing/metrics/metric_registry.html"> |
9 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html"> | 9 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html"> |
10 <link rel="import" href="/tracing/model/helpers/chrome_renderer_helper.html"> | 10 <link rel="import" href="/tracing/model/helpers/chrome_renderer_helper.html"> |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 max: false, | 101 max: false, |
102 min: false, | 102 min: false, |
103 std: false, | 103 std: false, |
104 sum: false | 104 sum: false |
105 }); | 105 }); |
106 cpuTimeHist.addSample(normalizedAllProcessCpuTime); | 106 cpuTimeHist.addSample(normalizedAllProcessCpuTime); |
107 values.addHistogram(cpuTimeHist); | 107 values.addHistogram(cpuTimeHist); |
108 } | 108 } |
109 | 109 |
110 tr.metrics.MetricRegistry.register(cpuTimeMetric, { | 110 tr.metrics.MetricRegistry.register(cpuTimeMetric, { |
111 supportsRangeOfInterest: true | 111 supportsRangeOfInterest: true, |
| 112 histogramNames: new Set([]), |
112 }); | 113 }); |
113 | 114 |
114 return { | 115 return { |
115 cpuTimeMetric, | 116 cpuTimeMetric, |
116 }; | 117 }; |
117 }); | 118 }); |
118 </script> | 119 </script> |
OLD | NEW |