| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 values.addHistogram(maxEventBytesPerSecValue); | 190 values.addHistogram(maxEventBytesPerSecValue); |
| 191 | 191 |
| 192 addMemoryInfraValues(values, model, categoryNamesToTotalEventSizes); | 192 addMemoryInfraValues(values, model, categoryNamesToTotalEventSizes); |
| 193 } | 193 } |
| 194 | 194 |
| 195 tr.metrics.MetricRegistry.register(tracingMetric); | 195 tr.metrics.MetricRegistry.register(tracingMetric); |
| 196 | 196 |
| 197 return { | 197 return { |
| 198 tracingMetric: tracingMetric, | 198 tracingMetric, |
| 199 // For testing only: | 199 // For testing only: |
| 200 MEMORY_INFRA_TRACING_CATEGORY: MEMORY_INFRA_TRACING_CATEGORY | 200 MEMORY_INFRA_TRACING_CATEGORY, |
| 201 }; | 201 }; |
| 202 }); | 202 }); |
| 203 </script> | 203 </script> |
| OLD | NEW |