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

Unified Diff: tracing/tracing/value/ui/histogram_set_table_cell.html

Issue 2742163002: Generalize delta statistics in Histogram. (Closed)
Patch Set: Created 3 years, 9 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/value/ui/histogram_set_table_cell.html
diff --git a/tracing/tracing/value/ui/histogram_set_table_cell.html b/tracing/tracing/value/ui/histogram_set_table_cell.html
index 0d15726bedd7527b624a3d8bbb7b569fb85246ef..25f6e961f3e432e47986f2fd595baced1861feab 100644
--- a/tracing/tracing/value/ui/histogram_set_table_cell.html
+++ b/tracing/tracing/value/ui/histogram_set_table_cell.html
@@ -238,8 +238,6 @@ tr.exportTo('tr.ui', function() {
this.$.open_histogram.style.visibility = 'visible';
this.$.scalar.style.display = 'flex';
- let displayStatistic = this.displayStatistic;
-
if ((this.referenceHistogram instanceof tr.v.Histogram) &&
(this.histogram.unit === this.referenceHistogram.unit) &&
(this.referenceHistogram.numValues > 0)) {
@@ -247,8 +245,10 @@ tr.exportTo('tr.ui', function() {
this.referenceHistogram);
}
- let statisticScalar = this.histogram.getStatisticScalar(
- displayStatistic, this.referenceHistogram);
+ const statName = this.histogram.getAvailableStatisticName(
+ this.displayStatistic, this.referenceHistogram);
+ const statisticScalar = this.histogram.getStatisticScalar(
+ statName, this.referenceHistogram);
this.$.scalar.setValueAndUnit(
statisticScalar.value, statisticScalar.unit);
« no previous file with comments | « tracing/tracing/value/ui/histogram_set_table.html ('k') | tracing/tracing/value/ui/histogram_set_table_row.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698