| 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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
| 9 <link rel="import" href="/tracing/metrics/metric_registry.html"> | 9 <link rel="import" href="/tracing/metrics/metric_registry.html"> |
| 10 <link rel="import" href="/tracing/value/diagnostics/diagnostic_map.html"> | 10 <link rel="import" href="/tracing/value/diagnostics/diagnostic_map.html"> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 'category_with_max_event_size', new tr.v.d.Generic(biggestCategory)); | 185 'category_with_max_event_size', new tr.v.d.Generic(biggestCategory)); |
| 186 histograms.addHistogram(maxEventCountPerSecValue); | 186 histograms.addHistogram(maxEventCountPerSecValue); |
| 187 | 187 |
| 188 maxEventBytesPerSecValue.diagnostics.set( | 188 maxEventBytesPerSecValue.diagnostics.set( |
| 189 'category_with_max_event_size', new tr.v.d.Generic(biggestCategory)); | 189 'category_with_max_event_size', new tr.v.d.Generic(biggestCategory)); |
| 190 histograms.addHistogram(maxEventBytesPerSecValue); | 190 histograms.addHistogram(maxEventBytesPerSecValue); |
| 191 | 191 |
| 192 addMemoryInfraHistograms(histograms, model, categoryNamesToTotalEventSizes); | 192 addMemoryInfraHistograms(histograms, model, categoryNamesToTotalEventSizes); |
| 193 } | 193 } |
| 194 | 194 |
| 195 tr.metrics.MetricRegistry.register(tracingMetric); | 195 tr.metrics.MetricRegistry.register(tracingMetric, { |
| 196 histogramNames: new Set([]), |
| 197 }); |
| 196 | 198 |
| 197 return { | 199 return { |
| 198 tracingMetric, | 200 tracingMetric, |
| 199 // For testing only: | 201 // For testing only: |
| 200 MEMORY_INFRA_TRACING_CATEGORY, | 202 MEMORY_INFRA_TRACING_CATEGORY, |
| 201 }; | 203 }; |
| 202 }); | 204 }); |
| 203 </script> | 205 </script> |
| OLD | NEW |