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

Unified Diff: tracing/tracing/ui/analysis/multi_event_summary.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (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 bbf0b06df59addc03811c13c705a68fefc735e60..1599be41a70548572c296a8fa93f0e97e7c29ac3 100644
--- a/tracing/tracing/ui/analysis/multi_event_summary.html
+++ b/tracing/tracing/ui/analysis/multi_event_summary.html
@@ -33,8 +33,9 @@ tr.exportTo('tr.ui.analysis', function() {
MultiEventSummary.prototype = {
set title(title) {
- if (title === 'Totals')
+ if (title === 'Totals') {
this.totalsRow = true;
+ }
this.title_ = title;
},
@@ -63,8 +64,7 @@ tr.exportTo('tr.ui.analysis', function() {
},
computeCpuTimesIfNeeded_: function() {
- if (this.cpuTimesComputed_)
- return;
+ if (this.cpuTimesComputed_) return;
this.cpuTimesComputed_ = true;
var cpuSelfTime = 0;
@@ -90,9 +90,11 @@ tr.exportTo('tr.ui.analysis', function() {
get selfTime() {
if (this.selfTime_ === undefined) {
this.selfTime_ = 0;
- for (var event of this.events_)
- if (event.selfTime !== undefined)
+ for (var event of this.events_) {
+ if (event.selfTime !== undefined) {
this.selfTime_ += event.selfTime;
+ }
+ }
}
return this.selfTime_;
},
@@ -170,8 +172,7 @@ tr.exportTo('tr.ui.analysis', function() {
updateArgsIfNeeded_: function() {
- if (this.totalledArgs_ !== undefined)
- return;
+ if (this.totalledArgs_ !== undefined) return;
var untotallableArgs = {};
var totalledArgs = {};
@@ -188,8 +189,9 @@ tr.exportTo('tr.ui.analysis', function() {
continue;
}
- if (totalledArgs[argName] === undefined)
+ if (totalledArgs[argName] === undefined) {
totalledArgs[argName] = 0;
+ }
totalledArgs[argName] += argVal;
}
}
« 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