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

Side by Side Diff: tracing/tracing/metrics/system_health/clock_sync_latency_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/metrics/metric_registry.html"> 8 <link rel="import" href="/tracing/metrics/metric_registry.html">
9 <link rel="import" href="/tracing/metrics/system_health/utils.html"> 9 <link rel="import" href="/tracing/metrics/system_health/utils.html">
10 <link rel="import" href="/tracing/model/model.html"> 10 <link rel="import" href="/tracing/model/model.html">
(...skipping 27 matching lines...) Expand all
38 sum: false, 38 sum: false,
39 }); 39 });
40 hist.description = 'Clock sync latency for domain ' + domains[i] + 40 hist.description = 'Clock sync latency for domain ' + domains[i] +
41 ' to domain ' + domains[j]; 41 ' to domain ' + domains[j];
42 hist.addSample(latency); 42 hist.addSample(latency);
43 values.addHistogram(hist); 43 values.addHistogram(hist);
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 tr.metrics.MetricRegistry.register(clockSyncLatencyMetric); 48 tr.metrics.MetricRegistry.register(clockSyncLatencyMetric, {
49 histogramNames: new Set([]),
50 });
49 51
50 return { 52 return {
51 clockSyncLatencyMetric, 53 clockSyncLatencyMetric,
52 }; 54 };
53 }); 55 });
54 </script> 56 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/sample_metric.html ('k') | tracing/tracing/metrics/system_health/cpu_time_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698