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/base/range.html"> | 8 <link rel="import" href="/tracing/base/range.html"> |
9 <link rel="import" href="/tracing/metrics/metric_registry.html"> | 9 <link rel="import" href="/tracing/metrics/metric_registry.html"> |
10 <link rel="import" href="/tracing/value/histogram.html"> | 10 <link rel="import" href="/tracing/value/histogram.html"> |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 var chromeHelper = model.getOrCreateHelper( | 30 var chromeHelper = model.getOrCreateHelper( |
31 tr.model.helpers.ChromeModelHelper); | 31 tr.model.helpers.ChromeModelHelper); |
32 | 32 |
33 tr.b.iterItems(model.processes, function(pid, process) { | 33 tr.b.iterItems(model.processes, function(pid, process) { |
34 }); | 34 }); |
35 | 35 |
36 values.addHistogram(hist); | 36 values.addHistogram(hist); |
37 } | 37 } |
38 | 38 |
39 tr.metrics.MetricRegistry.register(sampleMetric); | 39 tr.metrics.MetricRegistry.register(sampleMetric, { |
| 40 histogramNames: new Set(['foo']), |
| 41 }); |
40 | 42 |
41 return { | 43 return { |
42 sampleMetric, | 44 sampleMetric, |
43 }; | 45 }; |
44 }); | 46 }); |
45 </script> | 47 </script> |
OLD | NEW |