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

Unified Diff: tracing/tracing/ui/analysis/multi_event_summary.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/analysis/multi_event_summary.html
diff --git a/tracing/tracing/ui/analysis/multi_event_summary.html b/tracing/tracing/ui/analysis/multi_event_summary.html
index 5a104607910f738b080c36937f14c32ddc59d7b6..bbf0b06df59addc03811c13c705a68fefc735e60 100644
--- a/tracing/tracing/ui/analysis/multi_event_summary.html
+++ b/tracing/tracing/ui/analysis/multi_event_summary.html
@@ -7,7 +7,7 @@ found in the LICENSE file.
<link rel="import" href="/tracing/base/base.html">
<link rel="import" href="/tracing/base/iteration_helpers.html">
-<link rel="import" href="/tracing/base/statistics.html">
+<link rel="import" href="/tracing/base/math/statistics.html">
<script>
'use strict';
@@ -44,7 +44,7 @@ tr.exportTo('tr.ui.analysis', function() {
get duration() {
if (this.duration_ === undefined) {
- this.duration_ = tr.b.Statistics.sum(
+ this.duration_ = tr.b.math.Statistics.sum(
this.events_, function(event) {
return event.duration;
});
@@ -107,9 +107,9 @@ tr.exportTo('tr.ui.analysis', function() {
get numAlerts() {
if (this.numAlerts_ === undefined) {
- this.numAlerts_ = tr.b.Statistics.sum(this.events_, function(event) {
- return event.associatedAlerts.length;
- });
+ this.numAlerts_ = tr.b.math.Statistics.sum(this.events_, event =>
+ event.associatedAlerts.length
+ );
}
return this.numAlerts_;
},
@@ -127,7 +127,7 @@ tr.exportTo('tr.ui.analysis', function() {
get maxDuration() {
if (this.maxDuration_ === undefined) {
- this.maxDuration_ = tr.b.Statistics.max(
+ this.maxDuration_ = tr.b.math.Statistics.max(
this.events_, function(event) {
return event.duration;
});
@@ -138,7 +138,7 @@ tr.exportTo('tr.ui.analysis', function() {
get maxCpuDuration() {
if (this.maxCpuDuration_ === undefined) {
- this.maxCpuDuration_ = tr.b.Statistics.max(
+ this.maxCpuDuration_ = tr.b.math.Statistics.max(
this.events_, function(event) {
return event.cpuDuration;
});
@@ -149,7 +149,7 @@ tr.exportTo('tr.ui.analysis', function() {
get maxSelfTime() {
if (this.maxSelfTime_ === undefined) {
- this.maxSelfTime_ = tr.b.Statistics.max(
+ this.maxSelfTime_ = tr.b.math.Statistics.max(
this.events_, function(event) {
return event.selfTime;
});
@@ -160,7 +160,7 @@ tr.exportTo('tr.ui.analysis', function() {
get maxCpuSelfTime() {
if (this.maxCpuSelfTime_ === undefined) {
- this.maxCpuSelfTime_ = tr.b.Statistics.max(
+ this.maxCpuSelfTime_ = tr.b.math.Statistics.max(
this.events_, function(event) {
return event.cpuSelfTime;
});
« no previous file with comments | « tracing/tracing/ui/analysis/multi_event_sub_view.html ('k') | tracing/tracing/ui/analysis/multi_event_summary_table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698