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 'heap_profile.dart'; | |
11 import 'package:observatory/app.dart'; | 10 import 'package:observatory/app.dart'; |
12 import 'package:observatory/service.dart'; | 11 import 'package:observatory/service.dart'; |
13 import 'package:observatory/elements.dart'; | 12 import 'package:observatory/elements.dart'; |
14 import 'package:observatory/object_graph.dart'; | 13 import 'package:observatory/object_graph.dart'; |
15 import 'package:logging/logging.dart'; | |
16 import 'package:polymer/polymer.dart'; | 14 import 'package:polymer/polymer.dart'; |
17 | 15 |
18 class DominatorTreeRow extends TableTreeRow { | 16 class DominatorTreeRow extends TableTreeRow { |
19 final ObjectVertex vertex; | 17 final ObjectVertex vertex; |
20 final HeapSnapshot snapshot; | 18 final HeapSnapshot snapshot; |
21 | 19 |
22 var _domTreeChildren; | 20 var _domTreeChildren; |
23 get domTreeChildren { | 21 get domTreeChildren { |
24 if (_domTreeChildren == null) { | 22 if (_domTreeChildren == null) { |
25 _domTreeChildren = vertex.dominatorTreeChildren(); | 23 _domTreeChildren = vertex.dominatorTreeChildren(); |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 452 |
455 new Future.delayed(const Duration(milliseconds: 500), () { | 453 new Future.delayed(const Duration(milliseconds: 500), () { |
456 buildMergedVertices(snapshot.graph).then((vertices) { | 454 buildMergedVertices(snapshot.graph).then((vertices) { |
457 state = 'Loaded'; | 455 state = 'Loaded'; |
458 var rootRow = new MergedVerticesRow(tree, null, isolate, vertices); | 456 var rootRow = new MergedVerticesRow(tree, null, isolate, vertices); |
459 tree.initialize(rootRow); | 457 tree.initialize(rootRow); |
460 }); | 458 }); |
461 }); | 459 }); |
462 } | 460 } |
463 } | 461 } |
OLD | NEW |