Index: tracing/tracing/ui/side_panel/metrics_side_panel.html |
diff --git a/tracing/tracing/ui/side_panel/metrics_side_panel.html b/tracing/tracing/ui/side_panel/metrics_side_panel.html |
index b9351e5376159b2400ad2a0a6c760a5530b36eee..9396ac54e20ae06195a069c53a49c7985e743585 100644 |
--- a/tracing/tracing/ui/side_panel/metrics_side_panel.html |
+++ b/tracing/tracing/ui/side_panel/metrics_side_panel.html |
@@ -55,8 +55,8 @@ tr.exportTo('tr.ui', function() { |
this.metrics_ = []; |
tr.metrics.MetricRegistry.getAllRegisteredTypeInfos().forEach( |
function(m) { |
- if (m.constructor.name === 'sampleMetric') |
- return; |
+ if (m.constructor.name === 'sampleMetric') return; |
+ |
this.metrics_.push({ |
label: m.constructor.name, |
value: m.constructor.name |
@@ -181,8 +181,9 @@ tr.exportTo('tr.ui', function() { |
if (this.currentMetricTypeInfo_ && |
this.currentMetricTypeInfo_.metadata.supportsRangeOfInterest && |
this.rangeOfInterest && |
- !this.rangeOfInterest.isEmpty) |
+ !this.rangeOfInterest.isEmpty) { |
options.rangeOfInterest = this.rangeOfInterest; |
+ } |
var startDate = new Date(); |
try { |
@@ -193,8 +194,9 @@ tr.exportTo('tr.ui', function() { |
} |
this.metricLatenciesMs_.push(new Date() - startDate); |
- while (this.metricLatenciesMs_.length > 20) |
+ while (this.metricLatenciesMs_.length > 20) { |
this.metricLatenciesMs_.shift(); |
+ } |
this.recomputeButton_.style.background = ''; |