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.blink', function() { | 17 tr.exportTo('tr.metrics.blink', function() { |
18 // Maps the Blink GC events in timeline to telemetry friendly names. | 18 // Maps the Blink GC events in timeline to telemetry friendly names. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 var percentage = createPercentage( | 190 var percentage = createPercentage( |
191 name + '_percentage_idle', insideIdle.sum, cpuDuration.sum); | 191 name + '_percentage_idle', insideIdle.sum, cpuDuration.sum); |
192 histograms.addHistogram(percentage); | 192 histograms.addHistogram(percentage); |
193 } | 193 } |
194 | 194 |
195 return { | 195 return { |
196 blinkGcMetric, | 196 blinkGcMetric, |
197 }; | 197 }; |
198 }); | 198 }); |
199 </script> | 199 </script> |
OLD | NEW |