1 <!DOCTYPE html> 2 <!-- 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 5 found in the LICENSE file. 6 --> 7 <link rel="import" href="/tracing/base/base.html"> 8 <link rel="import" href="/tracing/base/extension_registry.html"> 9 <link rel="import" href="/tracing/base/iteration_helpers.html"> 10 11 <script> 12 'use strict'; 13 14 tr.exportTo('tr.metrics', function() { 15 16 function MetricRegistry() {} 17 18 var options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE); 19 options.defaultMetadata = {}; 20 options.mandatoryBaseClass = Function; 21 tr.b.decorateExtensionRegistry(MetricRegistry, options); 22 23 return { 24 MetricRegistry: MetricRegistry 25 }; 26 }); 27 </script> 28