OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_map_element; | 5 library heap_map_element; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'package:observatory/models.dart' as M; | 10 import 'package:observatory/models.dart' as M; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ..children = [ | 107 ..children = [ |
108 new NavTopMenuElement(queue: _r.queue), | 108 new NavTopMenuElement(queue: _r.queue), |
109 new NavVMMenuElement(_vm, _events, queue: _r.queue), | 109 new NavVMMenuElement(_vm, _events, queue: _r.queue), |
110 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), | 110 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
111 new NavMenuElement('heap map', last: true, | 111 new NavMenuElement('heap map', last: true, |
112 link: Uris.heapMap(_isolate), queue: _r.queue), | 112 link: Uris.heapMap(_isolate), queue: _r.queue), |
113 new NavRefreshElement(queue: _r.queue) | 113 new NavRefreshElement(queue: _r.queue) |
114 ..onRefresh.listen((_) => _refresh()), | 114 ..onRefresh.listen((_) => _refresh()), |
115 new NavNotifyElement(_notifications, queue: _r.queue) | 115 new NavNotifyElement(_notifications, queue: _r.queue) |
116 ], | 116 ], |
117 new DivElement()..classes = const ['content-centered-big'] | 117 new DivElement()..classes = ['content-centered-big'] |
118 ..children = [ | 118 ..children = [ |
119 new HeadingElement.h2()..text = _status, | 119 new HeadingElement.h2()..text = _status, |
120 new HRElement(), | 120 new HRElement(), |
121 ], | 121 ], |
122 new DivElement()..classes = ['flex-row'] | 122 new DivElement()..classes = ['flex-row'] |
123 ..children = [_canvas] | 123 ..children = [_canvas] |
124 ]; | 124 ]; |
125 } | 125 } |
126 | 126 |
127 // Encode color as single integer, to enable using it as a map key. | 127 // Encode color as single integer, to enable using it as a map key. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 // The row-major index of this pixel. | 316 // The row-major index of this pixel. |
317 int get index => _dataIndex ~/ NUM_COLOR_COMPONENTS; | 317 int get index => _dataIndex ~/ NUM_COLOR_COMPONENTS; |
318 } | 318 } |
319 | 319 |
320 class ObjectInfo { | 320 class ObjectInfo { |
321 final address; | 321 final address; |
322 final size; | 322 final size; |
323 ObjectInfo(this.address, this.size); | 323 ObjectInfo(this.address, this.size); |
324 } | 324 } |
OLD | NEW |