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

Unified Diff: tracing/tracing/metrics/sample_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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/metrics/sample_metric.html
diff --git a/tracing/tracing/metrics/sample_metric.html b/tracing/tracing/metrics/sample_metric.html
index e7a57b244b36eedf656bca97f59c5e0cd1348b2d..03ae60aa016e52f92e4552b77cae82cf19d350de 100644
--- a/tracing/tracing/metrics/sample_metric.html
+++ b/tracing/tracing/metrics/sample_metric.html
@@ -36,7 +36,9 @@ tr.exportTo('tr.metrics', function() {
values.addHistogram(hist);
}
- tr.metrics.MetricRegistry.register(sampleMetric);
+ tr.metrics.MetricRegistry.register(sampleMetric, {
+ histogramNames: new Set(['foo']),
+ });
return {
sampleMetric,

Powered by Google App Engine
This is Rietveld 408576698