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

Unified Diff: runtime/observatory/lib/src/elements/heap_snapshot.dart

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. 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: runtime/observatory/lib/src/elements/heap_snapshot.dart
diff --git a/runtime/observatory/lib/src/elements/heap_snapshot.dart b/runtime/observatory/lib/src/elements/heap_snapshot.dart
index 830e1a0b7229551cb0b4827237d7011df01a20d3..025a1da6c376b2d12e49610c980547d33c6ae047 100644
--- a/runtime/observatory/lib/src/elements/heap_snapshot.dart
+++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart
@@ -140,9 +140,7 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
Future _refresh() async {
_progress = null;
- _progressStream = _snapshots.get(isolate,
- roots: _roots,
- gc: true);
+ _progressStream = _snapshots.get(isolate, roots: _roots, gc: true);
_r.dirty();
_progressStream.listen((e) {
_progress = e.progress;
@@ -281,14 +279,13 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
]);
break;
case HeapSnapshotTreeMode.mergedDominatorTree:
- _tree = new VirtualTreeElement(
- _createMergedDominator, _updateMergedDominator,
- _getChildrenMergedDominator,
+ _tree = new VirtualTreeElement(_createMergedDominator,
+ _updateMergedDominator, _getChildrenMergedDominator,
items: _getChildrenMergedDominator(_snapshot.mergedDominatorTree),
queue: _r.queue);
_tree.expand(_snapshot.mergedDominatorTree);
final text = 'A heap dominator tree, where siblings with the same class'
- ' have been merged into a single node.';
+ ' have been merged into a single node.';
report.addAll([
new DivElement()
..classes = ['content-centered-big', 'explanation']
@@ -376,6 +373,7 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
.where((child) => child.retainedSize >= kMinRetainedSize)
.take(kMaxChildren);
}
+
static _getChildrenMergedDominator(M.HeapSnapshotMergedDominatorNode node) {
final list = node.children.toList();
list.sort((a, b) => b.retainedSize - a.retainedSize);
@@ -414,8 +412,7 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
wrapper
..text = ''
..children = [
- new AnchorElement(href: Uris.debugger(isolate))
- ..text = 'stack frames'
+ new AnchorElement(href: Uris.debugger(isolate))..text = 'stack frames'
];
} else {
node.object.then((object) {
@@ -445,8 +442,7 @@ class HeapSnapshotElement extends HtmlElement implements Renderable {
wrapper
..text = ''
..children = [
- new AnchorElement(href: Uris.debugger(isolate))
- ..text = 'stack frames'
+ new AnchorElement(href: Uris.debugger(isolate))..text = 'stack frames'
];
} else {
node.klass.then((klass) {
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | runtime/observatory/lib/src/elements/isolate_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698