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

Unified Diff: tracing/tracing/model/cpu.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
« no previous file with comments | « tracing/tracing/model/counter_sample.html ('k') | tracing/tracing/model/cpu_slice.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/cpu.html
diff --git a/tracing/tracing/model/cpu.html b/tracing/tracing/model/cpu.html
index 1ab71d54e93b98ecfbd1f8e1621c765aca139e56..51e7916d3c9eb7dc17d6feb77bbee5d2189e1475 100644
--- a/tracing/tracing/model/cpu.html
+++ b/tracing/tracing/model/cpu.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/range.html">
+<link rel="import" href="/tracing/base/math/range.html">
<link rel="import" href="/tracing/model/counter.html">
<link rel="import" href="/tracing/model/cpu_slice.html">
<link rel="import" href="/tracing/model/process_base.html">
@@ -33,7 +33,7 @@ tr.exportTo('tr.model', function() {
this.cpuNumber = number;
this.slices = [];
this.counters = {};
- this.bounds_ = new tr.b.Range();
+ this.bounds_ = new tr.b.math.Range();
this.samples_ = undefined; // Set during createSubSlices
// Start timestamp of the last active thread.
@@ -150,7 +150,7 @@ tr.exportTo('tr.model', function() {
* Returns the index of the slice in the CPU's slices, or undefined.
*/
indexOf: function(cpuSlice) {
- var i = tr.b.findLowIndexInSortedArray(
+ var i = tr.b.math.findLowIndexInSortedArray(
this.slices,
function(slice) { return slice.start; },
cpuSlice.start);
@@ -226,7 +226,7 @@ tr.exportTo('tr.model', function() {
var freqEnd = (index < freqSample.series_.length - 1) ?
freqSample.series_.samples_[index + 1].timestamp : range.max;
- var freqRange = tr.b.Range.fromExplicitRange(freqSample.timestamp,
+ var freqRange = tr.b.math.Range.fromExplicitRange(freqSample.timestamp,
freqEnd);
var intersection = freqRange.findIntersection(range);
if (!(freqSample.value in stats))
@@ -240,7 +240,7 @@ tr.exportTo('tr.model', function() {
if (!freqSeries)
return;
- tr.b.iterateOverIntersectingIntervals(freqSeries.samples_,
+ tr.b.math.iterateOverIntersectingIntervals(freqSeries.samples_,
function(x) { return x.timestamp; },
function(x, index) {
if (index < freqSeries.length - 1) {
« no previous file with comments | « tracing/tracing/model/counter_sample.html ('k') | tracing/tracing/model/cpu_slice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698