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

Unified Diff: tracing/tracing/extras/chrome/estimated_input_latency.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/extras/chrome/estimated_input_latency.html
diff --git a/tracing/tracing/extras/chrome/estimated_input_latency.html b/tracing/tracing/extras/chrome/estimated_input_latency.html
index dd265672cb8ac20e4c39c835e2b6c285e51e82e2..18f07321d997fa87265bc6cfdf1b2b4f05879df9 100644
--- a/tracing/tracing/extras/chrome/estimated_input_latency.html
+++ b/tracing/tracing/extras/chrome/estimated_input_latency.html
@@ -70,7 +70,7 @@ tr.exportTo('tr.e.chrome', function() {
* @param {!Array.<number>} interactiveTimestamps
* @param {!Array.<number>} navStartTimestamps
* @param {!number} traceEndTimestamp
- * @returns {!Array.<tr.b.Range>}
+ * @returns {!Array.<tr.b.math.Range>}
*/
function getPostInteractiveTaskWindows(
interactiveTimestamps, navStartTimestamps, traceEndTimestamp) {
@@ -99,7 +99,7 @@ tr.exportTo('tr.e.chrome', function() {
'PostInteractiveTaskWindow is not well defined in this case.');
}
- taskWindows.push(tr.b.Range.fromExplicitRange(
+ taskWindows.push(tr.b.math.Range.fromExplicitRange(
currTTI, taskWindowEndTs));
lastTaskWindowEndTs = taskWindowEndTs;
}
@@ -120,7 +120,7 @@ tr.exportTo('tr.e.chrome', function() {
* We assume that input arrival time is uniformly distributed in the given
* time window.
*
- * @param {!tr.b.Range} A time window.
+ * @param {!tr.b.math.Range} A time window.
* @param {!Array.<!{start: number, end: number, weight: number}>} A list of
* weighted tasks. The weight of a task must be between 0.0 and 1.0.
* @returns {number}
@@ -153,7 +153,7 @@ tr.exportTo('tr.e.chrome', function() {
* We assume that input arrival time is uniformly distributed in the given
* time window.
*
- * @param {!tr.b.Range} A time window.
+ * @param {!tr.b.math.Range} A time window.
* @param {!Array.<!{start: number, end: number, weight: number}>} A list of
* weighted tasks. The weight of a task must be between 0.0 and 1.0.
* @returns {number}
@@ -170,7 +170,7 @@ tr.exportTo('tr.e.chrome', function() {
* Returns expected queueing time for the given time window and
* the given set of tasks. The tasks must not overlap.
*
- * @param {!tr.b.Range} A time window.
+ * @param {!tr.b.math.Range} A time window.
* @param {!Array.<!{start: number, end: number}>} A list of tasks.
* @returns {number}
*/
@@ -202,9 +202,9 @@ tr.exportTo('tr.e.chrome', function() {
*/
this.sortedTasks_ = sortedTasks;
/**
- * @private {!tr.b.Range} The endpoints of the sliding window.
+ * @private {!tr.b.math.Range} The endpoints of the sliding window.
*/
- this.range_ = tr.b.Range.fromExplicitRange(
+ this.range_ = tr.b.math.Range.fromExplicitRange(
startTime, startTime + windowSize);
/**
* @private {number} The index of the first task in the sortedTasks that
@@ -258,7 +258,7 @@ tr.exportTo('tr.e.chrome', function() {
* @param {number} The time.
*/
slide(t) {
- this.range_ = tr.b.Range.fromExplicitRange(t, t + this.windowSize_);
+ this.range_ = tr.b.math.Range.fromExplicitRange(t, t + this.windowSize_);
if (this.firstTaskIndex_ < this.sortedTasks_.length &&
this.sortedTasks_[this.firstTaskIndex_].end <= t) {
// The first task moved out of the window.
« no previous file with comments | « tracing/tracing/extras/chrome/chrome_auditor.html ('k') | tracing/tracing/extras/chrome/estimated_input_latency_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698