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

Side by Side Diff: runtime/observatory/lib/src/elements/heap_snapshot.dart

Issue 2119733003: Wrapping leaf nodes in non polymer elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted vm-connect Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library heap_snapshot_element; 5 library heap_snapshot_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'observatory_element.dart'; 9 import 'observatory_element.dart';
10 import 'package:observatory/app.dart'; 10 import 'package:observatory/app.dart';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 percentNode.style.textAlign = 'right'; 68 percentNode.style.textAlign = 'right';
69 percentNode.title = "Percent of heap being retained"; 69 percentNode.title = "Percent of heap being retained";
70 percentNode.style.display = 'inline-block'; 70 percentNode.style.display = 'inline-block';
71 firstColumn.children.add(percentNode); 71 firstColumn.children.add(percentNode);
72 72
73 var gap = new SpanElement(); 73 var gap = new SpanElement();
74 gap.style.minWidth = '1em'; 74 gap.style.minWidth = '1em';
75 gap.style.display = 'inline-block'; 75 gap.style.display = 'inline-block';
76 firstColumn.children.add(gap); 76 firstColumn.children.add(gap);
77 77
78 AnyServiceRefElement objectRef = new Element.tag("any-service-ref"); 78 AnyServiceRefElementWrapper objectRef = new Element.tag("any-service-ref");
79 snapshot.isolate.getObjectByAddress(vertex.address).then((obj) { 79 snapshot.isolate.getObjectByAddress(vertex.address).then((obj) {
80 objectRef.ref = obj; 80 objectRef.ref = obj;
81 }); 81 });
82 objectRef.style.alignSelf = 'center'; 82 objectRef.style.alignSelf = 'center';
83 firstColumn.children.add(objectRef); 83 firstColumn.children.add(objectRef);
84 84
85 var secondColumn = flexColumns[1]; 85 var secondColumn = flexColumns[1];
86 secondColumn.style.justifyContent = 'flex-end'; 86 secondColumn.style.justifyContent = 'flex-end';
87 secondColumn.style.position = 'relative'; 87 secondColumn.style.position = 'relative';
88 secondColumn.style.alignItems = 'center'; 88 secondColumn.style.alignItems = 'center';
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 new Future.delayed(const Duration(milliseconds: 500), () { 461 new Future.delayed(const Duration(milliseconds: 500), () {
462 buildMergedVertices(snapshot.graph).then((vertices) { 462 buildMergedVertices(snapshot.graph).then((vertices) {
463 state = 'Loaded'; 463 state = 'Loaded';
464 var rootRow = new MergedVerticesRow(tree, null, isolate, vertices); 464 var rootRow = new MergedVerticesRow(tree, null, isolate, vertices);
465 tree.initialize(rootRow); 465 tree.initialize(rootRow);
466 }); 466 });
467 }); 467 });
468 } 468 }
469 } 469 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/heap_profile.html ('k') | runtime/observatory/lib/src/elements/heap_snapshot.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698