| <!DOCTYPE html> |
| <!-- |
| Copyright 2016 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| <link rel="import" href="/tracing/base/base.html"> |
| <link rel="import" href="/tracing/base/extension_registry.html"> |
| <link rel="import" href="/tracing/base/iteration_helpers.html"> |
| |
| <script> |
| 'use strict'; |
| |
| tr.exportTo('tr.metrics', function() { |
| |
| function MetricRegistry() {} |
| |
| var options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE); |
| options.defaultMetadata = {}; |
| options.mandatoryBaseClass = Function; |
| tr.b.decorateExtensionRegistry(MetricRegistry, options); |
| |
| return { |
| MetricRegistry: MetricRegistry |
| }; |
| }); |
| </script> |