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

Side by Side Diff: tracing/tracing/metrics/system_health/responsiveness_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 (c) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 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/statistics.html"> 8 <link rel="import" href="/tracing/base/statistics.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/metrics/system_health/utils.html"> 10 <link rel="import" href="/tracing/metrics/system_health/utils.html">
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 }); 137 });
138 }); 138 });
139 139
140 values.addHistogram(responseNumeric); 140 values.addHistogram(responseNumeric);
141 values.addHistogram(throughputNumeric); 141 values.addHistogram(throughputNumeric);
142 values.addHistogram(frameTimeDiscrepancyNumeric); 142 values.addHistogram(frameTimeDiscrepancyNumeric);
143 values.addHistogram(latencyNumeric); 143 values.addHistogram(latencyNumeric);
144 } 144 }
145 145
146 tr.metrics.MetricRegistry.register(responsivenessMetric, { 146 tr.metrics.MetricRegistry.register(responsivenessMetric, {
147 supportsRangeOfInterest: true 147 supportsRangeOfInterest: true,
148 histogramNames: new Set([]),
148 }); 149 });
149 150
150 return { 151 return {
151 responsivenessMetric, 152 responsivenessMetric,
152 }; 153 };
153 }); 154 });
154 </script> 155 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698