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); |
} |
} |