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/metrics/metric_registry.html"> | 8 <link rel="import" href="/tracing/metrics/metric_registry.html"> |
9 <link rel="import" href="/tracing/metrics/system_health/memory_metric.html"> | 9 <link rel="import" href="/tracing/metrics/system_health/memory_metric.html"> |
10 <link rel="import" href="/tracing/metrics/v8/execution_metric.html"> | 10 <link rel="import" href="/tracing/metrics/v8/execution_metric.html"> |
11 <link rel="import" href="/tracing/metrics/v8/gc_metric.html"> | 11 <link rel="import" href="/tracing/metrics/v8/gc_metric.html"> |
12 | 12 |
13 <script> | 13 <script> |
14 'use strict'; | 14 'use strict'; |
15 | 15 |
16 tr.exportTo('tr.metrics.v8', function() { | 16 tr.exportTo('tr.metrics.v8', function() { |
17 function v8AndMemoryMetrics(values, model) { | 17 function v8AndMemoryMetrics(values, model) { |
18 tr.metrics.v8.executionMetric(values, model); | 18 tr.metrics.v8.executionMetric(values, model); |
19 tr.metrics.v8.gcMetric(values, model); | 19 tr.metrics.v8.gcMetric(values, model); |
20 tr.metrics.sh.memoryMetric(values, model, | 20 tr.metrics.sh.memoryMetric(values, model, |
21 {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)}); | 21 {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)}); |
22 } | 22 } |
23 | 23 |
24 tr.metrics.MetricRegistry.register(v8AndMemoryMetrics); | 24 tr.metrics.MetricRegistry.register(v8AndMemoryMetrics, { |
| 25 histogramNames: new Set([]), |
| 26 }); |
25 | 27 |
26 return { | 28 return { |
27 v8AndMemoryMetrics, | 29 v8AndMemoryMetrics, |
28 }; | 30 }; |
29 }); | 31 }); |
30 </script> | 32 </script> |
OLD | NEW |