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 isolate_view_element; | 5 library isolate_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/curly_block.dart'; | 10 import 'package:observatory/src/elements/curly_block.dart'; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 new DivElement() | 270 new DivElement() |
271 ..classes = ['memberName'] | 271 ..classes = ['memberName'] |
272 ..text = 'object store', | 272 ..text = 'object store', |
273 new DivElement() | 273 new DivElement() |
274 ..classes = ['memberValue'] | 274 ..classes = ['memberValue'] |
275 ..children = [ | 275 ..children = [ |
276 new AnchorElement(href: Uris.objectStore(_isolate)) | 276 new AnchorElement(href: Uris.objectStore(_isolate)) |
277 ..text = 'object store' | 277 ..text = 'object store' |
278 ] | 278 ] |
279 ], | 279 ], |
| 280 new DivElement() |
| 281 ..classes = ['memberItem'] |
| 282 ..children = [ |
| 283 new DivElement() |
| 284 ..classes = ['memberName'] |
| 285 ..text = 'native memory usage high watermark' |
| 286 ..title = '''The maximum amount of native memory allocated |
| 287 by the isolate over it\'s life.''', |
| 288 new DivElement() |
| 289 ..classes = ['memberValue'] |
| 290 ..text = Utils.formatSize(_isolate.memoryHighWatermark) |
| 291 ..title = '${_isolate.memoryHighWatermark}B' |
| 292 ], |
280 new BRElement(), | 293 new BRElement(), |
281 new DivElement() | 294 new DivElement() |
282 ..classes = ['memberItem'] | 295 ..classes = ['memberItem'] |
283 ..children = [ | 296 ..children = [ |
284 new DivElement() | 297 new DivElement() |
285 ..classes = ['memberName'] | 298 ..classes = ['memberName'] |
286 ..text = 'libraries (${libraries.length})', | 299 ..text = 'libraries (${libraries.length})', |
287 new DivElement() | 300 new DivElement() |
288 ..classes = ['memberValue'] | 301 ..classes = ['memberValue'] |
289 ..children = [ | 302 ..children = [ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 ..classes = ['indent'] | 349 ..classes = ['indent'] |
337 ..children = [ | 350 ..children = [ |
338 new SpanElement() | 351 new SpanElement() |
339 ..text = '${t.id} ', | 352 ..text = '${t.id} ', |
340 new CurlyBlockElement(queue: _r.queue) | 353 new CurlyBlockElement(queue: _r.queue) |
341 ..content = [ | 354 ..content = [ |
342 new DivElement() | 355 new DivElement() |
343 ..classes = ['indent'] | 356 ..classes = ['indent'] |
344 ..text = 'kind ${t.kindString}', | 357 ..text = 'kind ${t.kindString}', |
345 new DivElement() | 358 new DivElement() |
| 359 ..classes = ['indent'] |
| 360 ..title = '${t.memoryHighWatermark}B' |
| 361 ..text = |
| 362 'native memory usage high watermark ${Utils.formatSize(t.memoryHig
hWatermark)}', |
| 363 new DivElement() |
346 ..children = t.zones | 364 ..children = t.zones |
347 .map((z) => new DivElement() | 365 .map((z) => new DivElement() |
348 ..classes = ['indent'] | 366 ..classes = ['indent'] |
349 ..children = [ | 367 ..children = [ |
350 new DivElement() | 368 new DivElement() |
351 ..children = [ | 369 ..children = [ |
352 new SpanElement() | 370 new SpanElement() |
353 ..children = [ | 371 ..children = [ |
354 new SpanElement() | 372 new SpanElement() |
355 ..text = 'zone ${index++} ', | 373 ..text = 'zone ${index++} ', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 _function = await _functions.get(_isolate, frame.function.id); | 417 _function = await _functions.get(_isolate, frame.function.id); |
400 } | 418 } |
401 if (_isolate.rootLibrary != null) { | 419 if (_isolate.rootLibrary != null) { |
402 final rootLibrary = | 420 final rootLibrary = |
403 await _libraries.get(_isolate, _isolate.rootLibrary.id); | 421 await _libraries.get(_isolate, _isolate.rootLibrary.id); |
404 _rootScript = rootLibrary.rootScript; | 422 _rootScript = rootLibrary.rootScript; |
405 } | 423 } |
406 _r.dirty(); | 424 _r.dirty(); |
407 } | 425 } |
408 } | 426 } |
OLD | NEW |