| Index: tracing/tracing/value/ui/histogram_span.html
|
| diff --git a/tracing/tracing/value/ui/histogram_span.html b/tracing/tracing/value/ui/histogram_span.html
|
| index f9001f460da17baf50c236b25cf6a79c70ff0039..b6400a7cbcddf0ed9fb9e8b3ddaf713a171e3c1b 100644
|
| --- a/tracing/tracing/value/ui/histogram_span.html
|
| +++ b/tracing/tracing/value/ui/histogram_span.html
|
| @@ -5,7 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
|
| found in the LICENSE file.
|
| -->
|
|
|
| -<link rel="import" href="/tracing/base/statistics.html">
|
| +<link rel="import" href="/tracing/base/math/statistics.html">
|
| <link rel="import" href="/tracing/ui/base/box_chart.html">
|
| <link rel="import" href="/tracing/ui/base/drag_handle.html">
|
| <link rel="import" href="/tracing/ui/base/name_bar_chart.html">
|
| @@ -198,7 +198,7 @@ tr.exportTo('tr.v.ui', function() {
|
|
|
| set brushedBins(bins) {
|
| this.brushedBins_ = bins;
|
| - let brushedBinIndices = new tr.b.Range();
|
| + let brushedBinIndices = new tr.b.math.Range();
|
| for (let bin of bins) {
|
| brushedBinIndices.addValue(this.histogram.allBins.indexOf(bin));
|
| }
|
| @@ -207,10 +207,10 @@ tr.exportTo('tr.v.ui', function() {
|
| },
|
|
|
| updateBrushedRange_(binIndex) {
|
| - let brushedBinIndices = new tr.b.Range();
|
| - brushedBinIndices.addValue(tr.b.clamp(
|
| + let brushedBinIndices = new tr.b.math.Range();
|
| + brushedBinIndices.addValue(tr.b.math.clamp(
|
| this.mouseDownBinIndex_, 0, this.histogram.allBins.length - 1));
|
| - brushedBinIndices.addValue(tr.b.clamp(
|
| + brushedBinIndices.addValue(tr.b.math.clamp(
|
| binIndex, 0, this.histogram.allBins.length - 1));
|
| brushedBinIndices.max += 1;
|
| this.chart_.brushedRange = brushedBinIndices;
|
| @@ -249,7 +249,7 @@ tr.exportTo('tr.v.ui', function() {
|
| this.brushedBins_.length === 1 &&
|
| this.prevBrushedBins_[0] === this.brushedBins_[0]) {
|
| this.brushedBins_ = [];
|
| - this.chart_.brushedRange = new tr.b.Range();
|
| + this.chart_.brushedRange = new tr.b.math.Range();
|
| }
|
| this.updateDiagnostics_();
|
| this.mouseDownBinIndex_ = undefined;
|
| @@ -306,7 +306,7 @@ tr.exportTo('tr.v.ui', function() {
|
| getDeltaScalars_(statNames, scalarMap) {
|
| if (!this.histogram.canCompare(this.referenceHistogram)) return;
|
|
|
| - let mwu = tr.b.Statistics.mwu(
|
| + let mwu = tr.b.math.Statistics.mwu(
|
| this.histogram.sampleValues, this.referenceHistogram.sampleValues);
|
|
|
| for (let deltaStatName of tr.v.Histogram.getDeltaStatisticsNames(
|
| @@ -414,7 +414,7 @@ tr.exportTo('tr.v.ui', function() {
|
| this.chart_.hideLegend = true;
|
| this.chart_.getDataSeries('y').color = 'blue';
|
| this.chart_.xAxisLabel = '#';
|
| - this.chart_.brushedRange = new tr.b.Range();
|
| + this.chart_.brushedRange = new tr.b.math.Range();
|
|
|
| let chartData = [];
|
| let binCounts = [];
|
| @@ -434,7 +434,7 @@ tr.exportTo('tr.v.ui', function() {
|
| // largest bin, then set the dataRange max to TRUNCATE_BIN_MARGIN% more
|
| // than that next largest bin.
|
| binCounts.sort((x, y) => y - x);
|
| - let dataRange = tr.b.Range.fromExplicitRange(0, binCounts[0]);
|
| + let dataRange = tr.b.math.Range.fromExplicitRange(0, binCounts[0]);
|
| if (binCounts[1] > 0 && binCounts[0] > (binCounts[1] * 2)) {
|
| dataRange.max = binCounts[1] * (1 + TRUNCATE_BIN_MARGIN);
|
| }
|
|
|