OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:html'; | 6 import 'dart:html'; |
7 import 'package:observatory/models.dart' as M; | 7 import 'package:observatory/models.dart' as M; |
8 import 'package:observatory/src/elements/context_ref.dart'; | 8 import 'package:observatory/src/elements/context_ref.dart'; |
9 import 'package:observatory/src/elements/curly_block.dart'; | 9 import 'package:observatory/src/elements/curly_block.dart'; |
10 import 'package:observatory/src/elements/helpers/any_ref.dart'; | 10 import 'package:observatory/src/elements/helpers/any_ref.dart'; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 new NavRefreshElement(queue: _r.queue) | 124 new NavRefreshElement(queue: _r.queue) |
125 ..onRefresh.listen((e) async { | 125 ..onRefresh.listen((e) async { |
126 e.element.disabled = true; | 126 e.element.disabled = true; |
127 _context = await _contexts.get(_isolate, _context.id); | 127 _context = await _contexts.get(_isolate, _context.id); |
128 _r.dirty(); | 128 _r.dirty(); |
129 }), | 129 }), |
130 new NavNotifyElement(_notifications, queue: _r.queue) | 130 new NavNotifyElement(_notifications, queue: _r.queue) |
131 ], | 131 ], |
132 new DivElement()..classes = const ['content-centered-big'] | 132 new DivElement()..classes = const ['content-centered-big'] |
133 ..children = [ | 133 ..children = [ |
134 new HeadingElement.h2()..text = 'Allocation Profile', | 134 new HeadingElement.h2()..text = 'Context', |
135 new HRElement(), | 135 new HRElement(), |
136 new ObjectCommonElement(_isolate, _context, _retainedSizes, | 136 new ObjectCommonElement(_isolate, _context, _retainedSizes, |
137 _reachableSizes, _references, _retainingPaths, | 137 _reachableSizes, _references, _retainingPaths, |
138 _instances, queue: _r.queue) | 138 _instances, queue: _r.queue) |
139 ] | 139 ] |
140 ]; | 140 ]; |
141 if (_context.parentContext != null) { | 141 if (_context.parentContext != null) { |
142 content.addAll([ | 142 content.addAll([ |
143 new BRElement(), | 143 new BRElement(), |
144 new DivElement()..classes = const ['content-centered-big'] | 144 new DivElement()..classes = const ['content-centered-big'] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ]).toList() | 183 ]).toList() |
184 ] | 184 ] |
185 ] | 185 ] |
186 ]); | 186 ]); |
187 } | 187 } |
188 content.add(new DivElement()..classes = const ['content-centered-big'] | 188 content.add(new DivElement()..classes = const ['content-centered-big'] |
189 ..children = [new ViewFooterElement(queue: _r.queue)]); | 189 ..children = [new ViewFooterElement(queue: _r.queue)]); |
190 children = content; | 190 children = content; |
191 } | 191 } |
192 } | 192 } |
OLD | NEW |