| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }); | 112 }); |
| 113 | 113 |
| 114 return { | 114 return { |
| 115 cpuTimeMetric: cpuTimeMetric, | 115 cpuTimeMetric, |
| 116 }; | 116 }; |
| 117 }); | 117 }); |
| 118 </script> | 118 </script> |
| OLD | NEW |