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

Unified Diff: tracing/tracing/metrics/system_health/clock_sync_latency_metric.html

Issue 2334233003: Merge NumericValue into Histogram (Closed)
Patch Set: fix rail_power_metric Created 4 years, 3 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/system_health/clock_sync_latency_metric.html
diff --git a/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html b/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html
index 641479ab9ead550f785ca2ea4996ca530698934e..8d3820e77d7a6622d90bb07163e9fc0a0357fb14 100644
--- a/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html
+++ b/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html
@@ -9,7 +9,6 @@ found in the LICENSE file.
<link rel="import" href="/tracing/metrics/system_health/utils.html">
<link rel="import" href="/tracing/model/model.html">
<link rel="import" href="/tracing/value/histogram.html">
-<link rel="import" href="/tracing/value/value.html">
<script>
'use strict';
@@ -42,13 +41,12 @@ tr.exportTo('tr.metrics.sh', function() {
targetDomain = domain.toLowerCase();
}
- var hist = new tr.v.Histogram(
+ var hist = new tr.v.Histogram('clock_sync_latency_' + targetDomain,
tr.b.Unit.byName.timeDurationInMs_smallerIsBetter,
tr.v.HistogramBinBoundaries.createExponential(1e-3, 1e3, 30));
+ hist.description = 'Clock sync latency for domain ' + targetDomain;
hist.addSample(latency);
- values.addValue(new tr.v.NumericValue(
- 'clock_sync_latency_' + targetDomain, hist,
- {description: 'Clock sync latency for domain ' + targetDomain}));
+ values.addHistogram(hist);
}
}
« no previous file with comments | « tracing/tracing/metrics/sample_metric.html ('k') | tracing/tracing/metrics/system_health/clock_sync_latency_metric_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698