| 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/math/range.html"> |
| 9 <link rel="import" href="/tracing/base/unit.html"> | 9 <link rel="import" href="/tracing/base/unit.html"> |
| 10 <link rel="import" href="/tracing/metrics/metric_registry.html"> | 10 <link rel="import" href="/tracing/metrics/metric_registry.html"> |
| 11 <link rel="import" href="/tracing/metrics/v8/utils.html"> | 11 <link rel="import" href="/tracing/metrics/v8/utils.html"> |
| 12 <link rel="import" href="/tracing/value/histogram.html"> | 12 <link rel="import" href="/tracing/value/histogram.html"> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 'use strict'; | 15 'use strict'; |
| 16 | 16 |
| 17 tr.exportTo('tr.metrics.v8', function() { | 17 tr.exportTo('tr.metrics.v8', function() { |
| 18 // The time window size for mutator utilization computation. | 18 // The time window size for mutator utilization computation. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 cpuDurationTotal, percentage_smallerIsBetter); | 217 cpuDurationTotal, percentage_smallerIsBetter); |
| 218 histograms.addHistogram(percentage); | 218 histograms.addHistogram(percentage); |
| 219 } | 219 } |
| 220 | 220 |
| 221 return { | 221 return { |
| 222 gcMetric, | 222 gcMetric, |
| 223 WINDOW_SIZE_MS, // For testing purposes only. | 223 WINDOW_SIZE_MS, // For testing purposes only. |
| 224 }; | 224 }; |
| 225 }); | 225 }); |
| 226 </script> | 226 </script> |
| OLD | NEW |