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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 new DivElement() | 290 new DivElement() |
291 ..classes = ['memberName'] | 291 ..classes = ['memberName'] |
292 ..text = 'object store', | 292 ..text = 'object store', |
293 new DivElement() | 293 new DivElement() |
294 ..classes = ['memberValue'] | 294 ..classes = ['memberValue'] |
295 ..children = [ | 295 ..children = [ |
296 new AnchorElement(href: Uris.objectStore(_isolate)) | 296 new AnchorElement(href: Uris.objectStore(_isolate)) |
297 ..text = 'object store' | 297 ..text = 'object store' |
298 ] | 298 ] |
299 ], | 299 ], |
| 300 new DivElement() |
| 301 ..classes = ['memberItem'] |
| 302 ..children = [ |
| 303 new DivElement() |
| 304 ..classes = ['memberName'] |
| 305 ..text = 'native memory usage high watermark' |
| 306 ..title = '''The maximum amount of native memory allocated |
| 307 by the isolate over it\'s life.''', |
| 308 new DivElement() |
| 309 ..classes = ['memberValue'] |
| 310 ..text = Utils.formatSize(_isolate.memoryHighWatermark) |
| 311 ..title = '${_isolate.memoryHighWatermark}B' |
| 312 ], |
300 new BRElement(), | 313 new BRElement(), |
301 new DivElement() | 314 new DivElement() |
302 ..classes = ['memberItem'] | 315 ..classes = ['memberItem'] |
303 ..children = [ | 316 ..children = [ |
304 new DivElement() | 317 new DivElement() |
305 ..classes = ['memberName'] | 318 ..classes = ['memberName'] |
306 ..text = 'libraries (${libraries.length})', | 319 ..text = 'libraries (${libraries.length})', |
307 new DivElement() | 320 new DivElement() |
308 ..classes = ['memberValue'] | 321 ..classes = ['memberValue'] |
309 ..children = [ | 322 ..children = [ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 ..classes = ['indent'] | 369 ..classes = ['indent'] |
357 ..children = [ | 370 ..children = [ |
358 new SpanElement() | 371 new SpanElement() |
359 ..text = '${t.id} ', | 372 ..text = '${t.id} ', |
360 new CurlyBlockElement(queue: _r.queue) | 373 new CurlyBlockElement(queue: _r.queue) |
361 ..content = [ | 374 ..content = [ |
362 new DivElement() | 375 new DivElement() |
363 ..classes = ['indent'] | 376 ..classes = ['indent'] |
364 ..text = 'kind ${t.kindString}', | 377 ..text = 'kind ${t.kindString}', |
365 new DivElement() | 378 new DivElement() |
| 379 ..classes = ['indent'] |
| 380 ..title = '${t.memoryHighWatermark}B' |
| 381 ..text = |
| 382 'native memory usage high watermark ${Utils.formatSize(t.memoryHig
hWatermark)}', |
| 383 new DivElement() |
366 ..children = t.zones | 384 ..children = t.zones |
367 .map((z) => new DivElement() | 385 .map((z) => new DivElement() |
368 ..classes = ['indent'] | 386 ..classes = ['indent'] |
369 ..children = [ | 387 ..children = [ |
370 new DivElement() | 388 new DivElement() |
371 ..children = [ | 389 ..children = [ |
372 new SpanElement() | 390 new SpanElement() |
373 ..children = [ | 391 ..children = [ |
374 new SpanElement() | 392 new SpanElement() |
375 ..text = 'zone ${index++} ', | 393 ..text = 'zone ${index++} ', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 _function = await _functions.get(_isolate, frame.function.id); | 437 _function = await _functions.get(_isolate, frame.function.id); |
420 } | 438 } |
421 if (_isolate.rootLibrary != null) { | 439 if (_isolate.rootLibrary != null) { |
422 final rootLibrary = | 440 final rootLibrary = |
423 await _libraries.get(_isolate, _isolate.rootLibrary.id); | 441 await _libraries.get(_isolate, _isolate.rootLibrary.id); |
424 _rootScript = rootLibrary.rootScript; | 442 _rootScript = rootLibrary.rootScript; |
425 } | 443 } |
426 _r.dirty(); | 444 _r.dirty(); |
427 } | 445 } |
428 } | 446 } |
OLD | NEW |