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

Unified Diff: tracing/tracing/ui/tracks/memory_dump_track_util.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/tracks/memory_dump_track_util.html
diff --git a/tracing/tracing/ui/tracks/memory_dump_track_util.html b/tracing/tracing/ui/tracks/memory_dump_track_util.html
index 13c610f16a23c31e7dc3097d20c276dc5c58636a..7717d646ba1953beb048db98a00243bbf7545e7a 100644
--- a/tracing/tracing/ui/tracks/memory_dump_track_util.html
+++ b/tracing/tracing/ui/tracks/memory_dump_track_util.html
@@ -41,19 +41,19 @@ tr.exportTo('tr.ui.tracks', function() {
/** Extract sizes of root allocators in a process memory dump. */
function extractProcessMemoryDumpAllocatorSizes(processMemoryDump, addSize) {
var allocatorDumps = processMemoryDump.memoryAllocatorDumps;
- if (allocatorDumps === undefined)
- return;
+ if (allocatorDumps === undefined) return;
+
allocatorDumps.forEach(function(allocatorDump) {
// Don't show tracing overhead in the charts.
// TODO(petrcermak): Find a less hacky way to do this.
- if (allocatorDump.fullName === 'tracing')
- return;
+ if (allocatorDump.fullName === 'tracing') return;
+
var allocatorSize = allocatorDump.numerics[DISPLAYED_SIZE_NUMERIC_NAME];
- if (allocatorSize === undefined)
- return;
+ if (allocatorSize === undefined) return;
+
var allocatorSizeValue = allocatorSize.value;
- if (allocatorSizeValue === undefined)
- return;
+ if (allocatorSizeValue === undefined) return;
+
addSize(allocatorDump.fullName, allocatorSizeValue);
});
}
@@ -97,15 +97,13 @@ tr.exportTo('tr.ui.tracks', function() {
}
}
timestampToPoint[index].y += size;
- if (opt_name !== undefined)
- idToName[id] = opt_name;
+ if (opt_name !== undefined) idToName[id] = opt_name;
});
});
// Do not generate any chart series if no sizes were extracted.
var ids = Object.keys(idToTimestampToPoint);
- if (ids.length === 0)
- return undefined;
+ if (ids.length === 0) return undefined;
ids.sort();
for (var i = 0; i < dumpCount; i++) {
« no previous file with comments | « tracing/tracing/ui/tracks/memory_dump_track_test_utils.html ('k') | tracing/tracing/ui/tracks/model_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698