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