Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Side by Side Diff: runtime/observatory/lib/src/elements/object_common.dart

Issue 2283863003: Converted Observatory object-pool-view element (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:observatory/models.dart' as M; 7 import 'package:observatory/models.dart' as M;
8 import 'package:observatory/src/elements/class_ref.dart'; 8 import 'package:observatory/src/elements/class_ref.dart';
9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
10 import 'package:observatory/src/elements/helpers/tag.dart'; 10 import 'package:observatory/src/elements/helpers/tag.dart';
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 queue: _r.queue); 95 queue: _r.queue);
96 children = [ 96 children = [
97 new DivElement()..classes = const ['memberList'] 97 new DivElement()..classes = const ['memberList']
98 ..children = [ 98 ..children = [
99 new DivElement()..classes = const ['memberItem'] 99 new DivElement()..classes = const ['memberItem']
100 ..children = [ 100 ..children = [
101 new DivElement()..classes = const ['memberName'] 101 new DivElement()..classes = const ['memberName']
102 ..text = 'Class ', 102 ..text = 'Class ',
103 new DivElement()..classes = const ['memberValue'] 103 new DivElement()..classes = const ['memberValue']
104 ..children = [ 104 ..children = [
105 new ClassRefElement(_isolate, _object.clazz, queue: _r.queue) 105 _object.clazz == null
106 ? (new SpanElement()..text = '...')
107 : new ClassRefElement(_isolate, _object.clazz,
108 queue: _r.queue)
106 ] 109 ]
107 ], 110 ],
108 new DivElement()..classes = const ['memberItem'] 111 new DivElement()..classes = const ['memberItem']
109 ..title = 'Space for this object in memory' 112 ..title = 'Space for this object in memory'
110 ..children = [ 113 ..children = [
111 new DivElement()..classes = const ['memberName'] 114 new DivElement()..classes = const ['memberName']
112 ..text = 'Shallow size ', 115 ..text = 'Shallow size ',
113 new DivElement()..classes = const ['memberValue'] 116 new DivElement()..classes = const ['memberValue']
114 ..text = Utils.formatSize(_object.size ?? 0) 117 ..text = Utils.formatSize(_object.size ?? 0)
115 ], 118 ],
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 button.onClick.listen((_) async { 208 button.onClick.listen((_) async {
206 button.disabled = true; 209 button.disabled = true;
207 _loadingRetainedBytes = true; 210 _loadingRetainedBytes = true;
208 _retainedSize = await _retainedSizes.get(_isolate, _object.id); 211 _retainedSize = await _retainedSizes.get(_isolate, _object.id);
209 _r.dirty(); 212 _r.dirty();
210 }); 213 });
211 content.add(button); 214 content.add(button);
212 return content; 215 return content;
213 } 216 }
214 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698