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

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

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase 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_row.html
diff --git a/tracing/tracing/value/ui/histogram_set_table_row.html b/tracing/tracing/value/ui/histogram_set_table_row.html
index 0fc8d36b59588a6c1c51d7b4e27a7d36ba8ac824..67b224e541e0dd84bfc8a738420fbd3c0bd997a8 100644
--- a/tracing/tracing/value/ui/histogram_set_table_row.html
+++ b/tracing/tracing/value/ui/histogram_set_table_row.html
@@ -154,7 +154,7 @@ tr.exportTo('tr.v.ui', function() {
maybeRebin_() {
// if all of |this| row's columns are single-bin, then re-bin all of them.
- const dataRange = new tr.b.Range();
+ const dataRange = new tr.b.math.Range();
for (const hist of this.columns.values()) {
if (!(hist instanceof tr.v.Histogram)) continue;
if (hist.allBins.length > 1) return; // don't re-bin
@@ -163,8 +163,8 @@ tr.exportTo('tr.v.ui', function() {
dataRange.addValue(hist.max);
}
- dataRange.addValue(tr.b.lesserWholeNumber(dataRange.min));
- dataRange.addValue(tr.b.greaterWholeNumber(dataRange.max));
+ dataRange.addValue(tr.b.math.lesserWholeNumber(dataRange.min));
+ dataRange.addValue(tr.b.math.greaterWholeNumber(dataRange.max));
if (dataRange.min === dataRange.max) return; // don't rebin
@@ -311,7 +311,7 @@ tr.exportTo('tr.v.ui', function() {
get overviewDataRange() {
if (this.overviewDataRange_ === undefined) {
- this.overviewDataRange_ = new tr.b.Range();
+ this.overviewDataRange_ = new tr.b.math.Range();
for (let [displayLabel, hist] of this.columns) {
if (hist.average !== undefined) {
this.overviewDataRange_.addValue(hist.average);
« no previous file with comments | « tracing/tracing/value/histogram_test.html ('k') | tracing/tracing/value/ui/histogram_set_table_row_state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698