OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |