Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: tracing/tracing/metrics/tracing_metric.html

Issue 2656493002: Register metric Histogram names. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/system_health/webview_startup_metric.html ('k') | tracing/tracing/metrics/v8/execution_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698