| 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 <link rel="import" href="/tracing/base/base.html"> | 7 <link rel="import" href="/tracing/base/base.html"> |
| 8 <link rel="import" href="/tracing/base/extension_registry.html"> | 8 <link rel="import" href="/tracing/base/extension_registry.html"> |
| 9 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 9 <link rel="import" href="/tracing/base/utils.html"> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 'use strict'; | 12 'use strict'; |
| 13 | 13 |
| 14 tr.exportTo('tr.metrics', function() { | 14 tr.exportTo('tr.metrics', function() { |
| 15 function MetricRegistry() {} | 15 function MetricRegistry() {} |
| 16 | 16 |
| 17 const options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE); | 17 const options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE); |
| 18 options.defaultMetadata = {}; | 18 options.defaultMetadata = {}; |
| 19 tr.b.decorateExtensionRegistry(MetricRegistry, options); | 19 tr.b.decorateExtensionRegistry(MetricRegistry, options); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 MetricRegistry.checkFilename(metric.name); | 106 MetricRegistry.checkFilename(metric.name); |
| 107 }); | 107 }); |
| 108 | 108 |
| 109 return { | 109 return { |
| 110 MetricRegistry, | 110 MetricRegistry, |
| 111 }; | 111 }; |
| 112 }); | 112 }); |
| 113 </script> | 113 </script> |
| OLD | NEW |