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

Unified Diff: tracing/tracing/value/histogram_parameter_collector.html

Issue 2900273002: Fix label sorting in results.html (Closed)
Patch Set: Fix label sorting in results.html Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/histogram_parameter_collector.html
diff --git a/tracing/tracing/value/histogram_parameter_collector.html b/tracing/tracing/value/histogram_parameter_collector.html
index 5be74254ba1b72d17c2dd9d414a8232868a809f6..3e7738ba1ea0973046a3974fe8a059cad4299db1 100644
--- a/tracing/tracing/value/histogram_parameter_collector.html
+++ b/tracing/tracing/value/histogram_parameter_collector.html
@@ -64,8 +64,11 @@ tr.exportTo('tr.v', function() {
}
const displayLabel = getDisplayLabel(hist);
- this.labelsToStartTimes_.set(displayLabel, Math.min(
- startTime, this.labelsToStartTimes_.get(displayLabel, 0)));
+ if (this.labelsToStartTimes_.has(displayLabel)) {
+ startTime = Math.min(startTime,
+ this.labelsToStartTimes_.get(displayLabel));
+ }
+ this.labelsToStartTimes_.set(displayLabel, startTime);
if (!telemetry) continue;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698