| 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/iteration_helpers.html"> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (!(metric instanceof Function)) | 24 if (!(metric instanceof Function)) |
| 25 throw new Error('Metrics must be functions'); | 25 throw new Error('Metrics must be functions'); |
| 26 | 26 |
| 27 if (metric.length < 2) { | 27 if (metric.length < 2) { |
| 28 throw new Error('Metrics take a HistogramSet and a Model and ' + | 28 throw new Error('Metrics take a HistogramSet and a Model and ' + |
| 29 'optionally an options dictionary'); | 29 'optionally an options dictionary'); |
| 30 } | 30 } |
| 31 }); | 31 }); |
| 32 | 32 |
| 33 return { | 33 return { |
| 34 MetricRegistry: MetricRegistry | 34 MetricRegistry, |
| 35 }; | 35 }; |
| 36 }); | 36 }); |
| 37 </script> | 37 </script> |
| OLD | NEW |