| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 ..title = '${_vm.heapAllocatedMemoryUsage} bytes' | 204 ..title = '${_vm.heapAllocatedMemoryUsage} bytes' |
| 205 ], | 205 ], |
| 206 new DivElement() | 206 new DivElement() |
| 207 ..classes = ['memberItem'] | 207 ..classes = ['memberItem'] |
| 208 ..children = [ | 208 ..children = [ |
| 209 new DivElement() | 209 new DivElement() |
| 210 ..classes = ['memberName'] | 210 ..classes = ['memberName'] |
| 211 ..text = 'native heap allocation count', | 211 ..text = 'native heap allocation count', |
| 212 new DivElement() | 212 new DivElement() |
| 213 ..classes = ['memberValue'] | 213 ..classes = ['memberValue'] |
| 214 ..text = _vm.heapAllocationCount | 214 ..text = '${_vm.heapAllocationCount}' |
| 215 ], | 215 ], |
| 216 | 216 |
| 217 new BRElement(), | 217 new BRElement(), |
| 218 new DivElement() | 218 new DivElement() |
| 219 ..classes = ['memberItem'] | 219 ..classes = ['memberItem'] |
| 220 ..children = [ | 220 ..children = [ |
| 221 new DivElement() | 221 new DivElement() |
| 222 ..classes = ['memberName'] | 222 ..classes = ['memberName'] |
| 223 ..children = [ | 223 ..children = [ |
| 224 new SpanElement()..text = 'see ', | 224 new SpanElement()..text = 'see ', |
| 225 new AnchorElement(href: Uris.flags())..text = 'flags' | 225 new AnchorElement(href: Uris.flags())..text = 'flags' |
| 226 ], | 226 ], |
| 227 new DivElement() | 227 new DivElement() |
| 228 ..classes = ['memberValue'] | 228 ..classes = ['memberValue'] |
| 229 ..children = [ | 229 ..children = [ |
| 230 new SpanElement()..text = 'view ', | 230 new SpanElement()..text = 'view ', |
| 231 new AnchorElement(href: Uris.timeline()) | 231 new AnchorElement(href: Uris.timeline()) |
| 232 ..text = 'timeline' | 232 ..text = 'timeline' |
| 233 ] | 233 ] |
| 234 ] | 234 ], |
| 235 new DivElement() |
| 236 ..classes = ['memberItem'] |
| 237 ..children = [ |
| 238 new DivElement() |
| 239 ..classes = ['memberName'] |
| 240 ..children = [ |
| 241 new SpanElement()..text = 'view ', |
| 242 new AnchorElement(href: Uris.nativeMemory()) |
| 243 ..text = 'native memory profile' |
| 244 ] |
| 245 ] |
| 235 ], | 246 ], |
| 236 new BRElement(), | 247 new BRElement(), |
| 237 new HeadingElement.h1()..text = 'Isolates (${isolates.length})', | 248 new HeadingElement.h1()..text = 'Isolates (${isolates.length})', |
| 238 new HRElement(), | 249 new HRElement(), |
| 239 new UListElement() | 250 new UListElement() |
| 240 ..classes = ['list-group'] | 251 ..classes = ['list-group'] |
| 241 ..children = isolates | 252 ..children = isolates |
| 242 .expand((i) => [ | 253 .expand((i) => [ |
| 243 new LIElement() | 254 new LIElement() |
| 244 ..classes = ['list-group-item'] | 255 ..classes = ['list-group-item'] |
| 245 ..children = [ | 256 ..children = [ |
| 246 new IsolateSummaryElement( | 257 new IsolateSummaryElement( |
| 247 i, _isolates, _events, _scripts, | 258 i, _isolates, _events, _scripts, |
| 248 queue: _r.queue) | 259 queue: _r.queue) |
| 249 ], | 260 ], |
| 250 new HRElement() | 261 new HRElement() |
| 251 ]) | 262 ]) |
| 252 .toList(), | 263 .toList(), |
| 253 new ViewFooterElement(queue: _r.queue) | 264 new ViewFooterElement(queue: _r.queue) |
| 254 ] | 265 ] |
| 255 ]; | 266 ]; |
| 256 } | 267 } |
| 257 } | 268 } |
| OLD | NEW |