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/value/histogram.html"> | 9 <link rel="import" href="/tracing/value/histogram.html"> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // taken. | 71 // taken. |
72 var missingSnapshotCount = snapshots.length - numeric.numValues; | 72 var missingSnapshotCount = snapshots.length - numeric.numValues; |
73 for (var i = 0; i < missingSnapshotCount; i++) | 73 for (var i = 0; i < missingSnapshotCount; i++) |
74 numeric.addSample(0); | 74 numeric.addSample(0); |
75 numeric.diagnostics.set('paths', new | 75 numeric.diagnostics.set('paths', new |
76 tr.v.d.Generic([...processData.paths])); | 76 tr.v.d.Generic([...processData.paths])); |
77 values.addHistogram(numeric); | 77 values.addHistogram(numeric); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 tr.metrics.MetricRegistry.register(cpuProcessMetric); | 81 tr.metrics.MetricRegistry.register(cpuProcessMetric, { |
| 82 histogramNames: new Set([]), |
| 83 }); |
82 | 84 |
83 return { | 85 return { |
84 cpuProcessMetric, | 86 cpuProcessMetric, |
85 }; | 87 }; |
86 }); | 88 }); |
87 </script> | 89 </script> |
OLD | NEW |