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

Unified Diff: tracing/tracing/model/thread.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/slice_group.html ('k') | tracing/tracing/model/thread_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/thread.html
diff --git a/tracing/tracing/model/thread.html b/tracing/tracing/model/thread.html
index 8295d7fb3a4478b821fb19436c750e3ea3a513a9..1ae344e85e75db71e7b485fa8e2a4b96eba5edbd 100644
--- a/tracing/tracing/model/thread.html
+++ b/tracing/tracing/model/thread.html
@@ -6,7 +6,7 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/guid.html">
-<link rel="import" href="/tracing/base/range.html">
+<link rel="import" href="/tracing/base/math/range.html">
<link rel="import" href="/tracing/model/async_slice_group.html">
<link rel="import" href="/tracing/model/event_container.html">
<link rel="import" href="/tracing/model/slice_group.html">
@@ -225,7 +225,7 @@ tr.exportTo('tr.model', function() {
* Returns the index of the slice in the timeSlices array, or undefined.
*/
indexOfTimeSlice: function(timeSlice) {
- var i = tr.b.findLowIndexInSortedArray(
+ var i = tr.b.math.findLowIndexInSortedArray(
this.timeSlices,
function(slice) { return slice.start; },
timeSlice.start);
@@ -249,7 +249,7 @@ tr.exportTo('tr.model', function() {
return stats;
function addStatsForSlice(threadTimeSlice) {
- var freqRange = tr.b.Range.fromExplicitRange(threadTimeSlice.start,
+ var freqRange = tr.b.math.Range.fromExplicitRange(threadTimeSlice.start,
threadTimeSlice.end);
var intersection = freqRange.findIntersection(range);
@@ -264,7 +264,7 @@ tr.exportTo('tr.model', function() {
}
}
- tr.b.iterateOverIntersectingIntervals(this.timeSlices,
+ tr.b.math.iterateOverIntersectingIntervals(this.timeSlices,
function(x) { return x.start; },
function(x) { return x.end; },
range.min,
@@ -288,7 +288,7 @@ tr.exportTo('tr.model', function() {
stats[schedulingState] += overlapEnd - overlapStart;
}
- tr.b.iterateOverIntersectingIntervals(this.timeSlices,
+ tr.b.math.iterateOverIntersectingIntervals(this.timeSlices,
function(x) { return x.start; },
function(x) { return x.end; },
start,
« no previous file with comments | « tracing/tracing/model/slice_group.html ('k') | tracing/tracing/model/thread_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698