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

Unified Diff: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.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/ui/extras/side_panel/input_latency_side_panel.html
diff --git a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
index d6ff93528f7d11f227045b8fe3135effe066beab..793427481e3d70d0c61d067341a1df94bcadc028 100644
--- a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
+++ b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.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/model/event_set.html">
<link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
<link rel="import" href="/tracing/ui/base/dom_helpers.html">
@@ -46,7 +46,7 @@ Polymer({
ready: function() {
- this.rangeOfInterest_ = new tr.b.Range();
+ this.rangeOfInterest_ = new tr.b.math.Range();
this.frametimeType_ = tr.model.helpers.IMPL_FRAMETIME_TYPE;
this.latencyChart_ = undefined;
this.frametimeChart_ = undefined;
@@ -111,7 +111,7 @@ Polymer({
if (this.latencyChart_ === undefined)
return;
- var r = new tr.b.Range();
+ var r = new tr.b.math.Range();
if (this.mouseDownIndex_ === undefined) {
this.latencyChart_.brushedRange = r;
return;
@@ -235,9 +235,9 @@ Polymer({
var frametimeData = tr.model.helpers.getFrametimeDataFromEvents(
frameEvents);
- var averageFrametime = tr.b.Statistics.mean(frametimeData, function(d) {
- return d.frametime;
- });
+ var averageFrametime = tr.b.math.Statistics.mean(frametimeData, d =>
+ d.frametime
+ );
var latencyEvents = this.modelHelper_.browserHelper.
getLatencyEventsInRange(
@@ -253,7 +253,7 @@ Polymer({
});
});
- var averageLatency = tr.b.Statistics.mean(latencyData, function(d) {
+ var averageLatency = tr.b.math.Statistics.mean(latencyData, function(d) {
return d.latency;
});

Powered by Google App Engine
This is Rietveld 408576698