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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: 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 025a1da6c376b2d12e49610c980547d33c6ae047..830e1a0b7229551cb0b4827237d7011df01a20d3 100644
--- a/runtime/observatory/lib/src/elements/heap_snapshot.dart
+++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart
@@ -140,7 +140,9 @@ 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;
@@ -279,13 +281,14 @@ 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']
@@ -373,7 +376,6 @@ 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);
@@ -412,7 +414,8 @@ 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) {
@@ -442,7 +445,8 @@ 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