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 5212e2b87b195bfb6d3c62b217470a69467f90d7..7ac3faaa5a90fad912ae5a566a65a9914d633a09 100644 |
--- a/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html |
+++ b/tracing/tracing/metrics/system_health/clock_sync_latency_metric.html |
@@ -15,10 +15,6 @@ found in the LICENSE file. |
'use strict'; |
tr.exportTo('tr.metrics.sh', function() { |
- var LATENCY_NUMERIC_BUILDER = tr.v.NumericBuilder.createExponential( |
- tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, |
- tr.b.Range.fromExplicitRange(1e-3, 1e3), 30); |
- |
function syncIsComplete(markers) { |
return markers.length === 2; |
} |
@@ -46,7 +42,9 @@ tr.exportTo('tr.metrics.sh', function() { |
targetDomain = domain.toLowerCase(); |
} |
- var hist = LATENCY_NUMERIC_BUILDER.build(); |
+ var hist = new tr.v.Histogram( |
+ tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, |
+ tr.v.HistogramBinBoundaries.createExponential(1e-3, 1e3, 30)); |
hist.add(latency); |
values.addValue(new tr.v.NumericValue( |
'clock_sync_latency_' + targetDomain, hist, |