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

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

Issue 2324833005: Minor UI tweaks. (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 objectpool_view; 5 library objectpool_view;
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/context_ref.dart'; 10 import 'package:observatory/src/elements/context_ref.dart';
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 new NavRefreshElement(queue: _r.queue) 121 new NavRefreshElement(queue: _r.queue)
122 ..onRefresh.listen((e) async { 122 ..onRefresh.listen((e) async {
123 e.element.disabled = true; 123 e.element.disabled = true;
124 _pool = await _pools.get(_isolate, _pool.id); 124 _pool = await _pools.get(_isolate, _pool.id);
125 _r.dirty(); 125 _r.dirty();
126 }), 126 }),
127 new NavNotifyElement(_notifications, queue: _r.queue) 127 new NavNotifyElement(_notifications, queue: _r.queue)
128 ]), 128 ]),
129 new DivElement()..classes = ['content-centered-big'] 129 new DivElement()..classes = ['content-centered-big']
130 ..children = [ 130 ..children = [
131 new HeadingElement.h2()..text = 'Object Pool', 131 new HeadingElement.h2()..text = 'ObjectPool',
132 new HRElement(), 132 new HRElement(),
133 new ObjectCommonElement(_isolate, _pool, _retainedSizes, 133 new ObjectCommonElement(_isolate, _pool, _retainedSizes,
134 _reachableSizes, _references, _retainingPaths, 134 _reachableSizes, _references, _retainingPaths,
135 _instances, queue: _r.queue), 135 _instances, queue: _r.queue),
136 new HRElement(), 136 new HRElement(),
137 new HeadingElement.h3()..text = 'entries (${_pool.entries.length})', 137 new HeadingElement.h3()..text = 'entries (${_pool.entries.length})',
138 new DivElement()..classes = ['memberList'] 138 new DivElement()..classes = ['memberList']
139 ..children = _pool.entries.map((entry) 139 ..children = _pool.entries.map((entry)
140 => new DivElement()..classes = ['memberItem'] 140 => new DivElement()..classes = ['memberItem']
141 ..children = [ 141 ..children = [
(...skipping 22 matching lines...) Expand all
164 ]; 164 ];
165 case M.ObjectPoolEntryKind.nativeEntry: 165 case M.ObjectPoolEntryKind.nativeEntry:
166 return [ 166 return [
167 new SpanElement() 167 new SpanElement()
168 ..text = 'NativeEntry 0x${entry.asInteger.toRadixString(16)}' 168 ..text = 'NativeEntry 0x${entry.asInteger.toRadixString(16)}'
169 ]; 169 ];
170 } 170 }
171 throw new Exception('Unkown ObjectPoolEntryKind (${entry.kind})'); 171 throw new Exception('Unkown ObjectPoolEntryKind (${entry.kind})');
172 } 172 }
173 } 173 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/icdata_view.dart ('k') | runtime/observatory/lib/src/elements/vm_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698