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 = 'high watermark', |
| 286 new DivElement() |
| 287 ..classes = ['memberValue'] |
| 288 ..text = Utils.formatSize(_isolate.memoryHighWatermark) |
| 289 ..title = '${_isolate.memoryHighWatermark}B' |
| 290 ], |
280 new BRElement(), | 291 new BRElement(), |
281 new DivElement() | 292 new DivElement() |
282 ..classes = ['memberItem'] | 293 ..classes = ['memberItem'] |
283 ..children = [ | 294 ..children = [ |
284 new DivElement() | 295 new DivElement() |
285 ..classes = ['memberName'] | 296 ..classes = ['memberName'] |
286 ..text = 'libraries (${libraries.length})', | 297 ..text = 'libraries (${libraries.length})', |
287 new DivElement() | 298 new DivElement() |
288 ..classes = ['memberValue'] | 299 ..classes = ['memberValue'] |
289 ..children = [ | 300 ..children = [ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 ..classes = ['indent'] | 347 ..classes = ['indent'] |
337 ..children = [ | 348 ..children = [ |
338 new SpanElement() | 349 new SpanElement() |
339 ..text = '${t.id} ', | 350 ..text = '${t.id} ', |
340 new CurlyBlockElement(queue: _r.queue) | 351 new CurlyBlockElement(queue: _r.queue) |
341 ..content = [ | 352 ..content = [ |
342 new DivElement() | 353 new DivElement() |
343 ..classes = ['indent'] | 354 ..classes = ['indent'] |
344 ..text = 'kind ${t.kindString}', | 355 ..text = 'kind ${t.kindString}', |
345 new DivElement() | 356 new DivElement() |
| 357 ..classes = ['indent'] |
| 358 ..title = '${t.memoryHighWatermark}B' |
| 359 ..text = |
| 360 'high watermark ${Utils.formatSize(t.memoryHighWatermark)}', |
| 361 new DivElement() |
346 ..children = t.zones | 362 ..children = t.zones |
347 .map((z) => new DivElement() | 363 .map((z) => new DivElement() |
348 ..classes = ['indent'] | 364 ..classes = ['indent'] |
349 ..children = [ | 365 ..children = [ |
350 new DivElement() | 366 new DivElement() |
351 ..children = [ | 367 ..children = [ |
352 new SpanElement() | 368 new SpanElement() |
353 ..children = [ | 369 ..children = [ |
354 new SpanElement() | 370 new SpanElement() |
355 ..text = 'zone ${index++} ', | 371 ..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); | 415 _function = await _functions.get(_isolate, frame.function.id); |
400 } | 416 } |
401 if (_isolate.rootLibrary != null) { | 417 if (_isolate.rootLibrary != null) { |
402 final rootLibrary = | 418 final rootLibrary = |
403 await _libraries.get(_isolate, _isolate.rootLibrary.id); | 419 await _libraries.get(_isolate, _isolate.rootLibrary.id); |
404 _rootScript = rootLibrary.rootScript; | 420 _rootScript = rootLibrary.rootScript; |
405 } | 421 } |
406 _r.dirty(); | 422 _r.dirty(); |
407 } | 423 } |
408 } | 424 } |
OLD | NEW |