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 library vm_view_element; | 5 library vm_view_element; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; | 10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 ..classes = ['memberItem'] | 185 ..classes = ['memberItem'] |
186 ..children = [ | 186 ..children = [ |
187 new DivElement() | 187 new DivElement() |
188 ..classes = ['memberName'] | 188 ..classes = ['memberName'] |
189 ..text = 'native zone memory', | 189 ..text = 'native zone memory', |
190 new DivElement() | 190 new DivElement() |
191 ..classes = ['memberValue'] | 191 ..classes = ['memberValue'] |
192 ..text = Utils.formatSize(_vm.nativeZoneMemoryUsage) | 192 ..text = Utils.formatSize(_vm.nativeZoneMemoryUsage) |
193 ..title = '${_vm.nativeZoneMemoryUsage} bytes' | 193 ..title = '${_vm.nativeZoneMemoryUsage} bytes' |
194 ], | 194 ], |
| 195 new DivElement() |
| 196 ..classes = ['memberItem'] |
| 197 ..children = [ |
| 198 new DivElement() |
| 199 ..classes = ['memberName'] |
| 200 ..text = 'native heap memory', |
| 201 new DivElement() |
| 202 ..classes = ['memberValue'] |
| 203 ..text = Utils.formatSize(_vm.heapAllocatedMemoryUsage) |
| 204 ..title = '${_vm.heapAllocatedMemoryUsage} bytes' |
| 205 ], |
| 206 new DivElement() |
| 207 ..classes = ['memberItem'] |
| 208 ..children = [ |
| 209 new DivElement() |
| 210 ..classes = ['memberName'] |
| 211 ..text = 'native heap allocation count', |
| 212 new DivElement() |
| 213 ..classes = ['memberValue'] |
| 214 ..text = _vm.heapAllocationCount |
| 215 ], |
| 216 |
195 new BRElement(), | 217 new BRElement(), |
196 new DivElement() | 218 new DivElement() |
197 ..classes = ['memberItem'] | 219 ..classes = ['memberItem'] |
198 ..children = [ | 220 ..children = [ |
199 new DivElement() | 221 new DivElement() |
200 ..classes = ['memberName'] | 222 ..classes = ['memberName'] |
201 ..children = [ | 223 ..children = [ |
202 new SpanElement()..text = 'see ', | 224 new SpanElement()..text = 'see ', |
203 new AnchorElement(href: Uris.flags())..text = 'flags' | 225 new AnchorElement(href: Uris.flags())..text = 'flags' |
204 ], | 226 ], |
(...skipping 21 matching lines...) Expand all Loading... |
226 queue: _r.queue) | 248 queue: _r.queue) |
227 ], | 249 ], |
228 new HRElement() | 250 new HRElement() |
229 ]) | 251 ]) |
230 .toList(), | 252 .toList(), |
231 new ViewFooterElement(queue: _r.queue) | 253 new ViewFooterElement(queue: _r.queue) |
232 ] | 254 ] |
233 ]; | 255 ]; |
234 } | 256 } |
235 } | 257 } |
OLD | NEW |