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

Side by Side Diff: runtime/observatory/lib/src/app/page.dart

Issue 2289953003: Converted Observatory library-view element (Closed)
Patch Set: Fixed inspect page pattern matching 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of app; 5 part of app;
6 6
7 AllocationProfileRepository _allocationProfileRepository 7 final _allocationProfileRepository = new AllocationProfileRepository();
8 = new AllocationProfileRepository(); 8 final _classRepository = new ClassRepository();
9 ClassRepository _classRepository = new ClassRepository(); 9 final _contextRepository = new ContextRepository();
10 ContextRepository _contextRepository = new ContextRepository(); 10 final _evalRepository = new EvalRepository();
11 FieldRepository _fieldRepository = new FieldRepository(); 11 final _fieldRepository = new FieldRepository();
12 FunctionRepository _functionRepository = new FunctionRepository(); 12 final _functionRepository = new FunctionRepository();
13 HeapSnapshotRepository _heapSnapshotRepository 13 final _heapSnapshotRepository = new HeapSnapshotRepository();
14 = new HeapSnapshotRepository(); 14 final _icdataRepository = new ICDataRepository();
15 ICDataRepository _icdataRepository = new ICDataRepository(); 15 final _inboundReferencesRepository = new InboundReferencesRepository();
16 InboundReferencesRepository _inboundReferencesRepository 16 final _instanceRepository = new InstanceRepository();
17 = new InboundReferencesRepository(); 17 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository();
18 InstanceRepository _instanceRepository = new InstanceRepository(); 18 final _libraryRepository = new LibraryRepository();
19 IsolateSampleProfileRepository _isolateSampleProfileRepository 19 final _megamorphicCacheRepository = new MegamorphicCacheRepository();
20 = new IsolateSampleProfileRepository(); 20 final _objectRepository = new ObjectRepository();
21 MegamorphicCacheRepository _megamorphicCacheRepository 21 final _objectPoolRepository = new ObjectPoolRepository();
22 = new MegamorphicCacheRepository(); 22 final _objectstoreRepository = new ObjectStoreRepository();
23 ObjectPoolRepository _objectPoolRepository 23 final _persistentHandlesRepository = new PersistentHandlesRepository();
24 = new ObjectPoolRepository(); 24 final _portsRepository = new PortsRepository();
25 ObjectStoreRepository _objectstoreRepository 25 final _scriptRepository = new ScriptRepository();
26 = new ObjectStoreRepository();
27 ObjectRepository _objectRepository = new ObjectRepository();
28 PersistentHandlesRepository _persistentHandlesRepository
29 = new PersistentHandlesRepository();
30 PortsRepository _portsRepository = new PortsRepository();
31 ScriptRepository _scriptRepository = new ScriptRepository();
32 26
33 class IsolateNotFound implements Exception { 27 class IsolateNotFound implements Exception {
34 String isolateId; 28 String isolateId;
35 IsolateNotFound(this.isolateId); 29 IsolateNotFound(this.isolateId);
36 String toString() => "IsolateNotFound: $isolateId"; 30 String toString() => "IsolateNotFound: $isolateId";
37 } 31 }
38 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); 32 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository();
39 ReachableSizeRepository _reachableSizeRepository 33 ReachableSizeRepository _reachableSizeRepository
40 = new ReachableSizeRepository(); 34 = new ReachableSizeRepository();
41 RetainingPathRepository _retainingPathRepository 35 RetainingPathRepository _retainingPathRepository
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, 240 new ICDataViewElement(app.vm, obj.isolate, obj, app.events,
247 app.notifications, 241 app.notifications,
248 _icdataRepository, 242 _icdataRepository,
249 _retainedSizeRepository, 243 _retainedSizeRepository,
250 _reachableSizeRepository, 244 _reachableSizeRepository,
251 _inboundReferencesRepository, 245 _inboundReferencesRepository,
252 _retainingPathRepository, 246 _retainingPathRepository,
253 _instanceRepository, 247 _instanceRepository,
254 queue: app.queue) 248 queue: app.queue)
255 ]; 249 ];
250 } else if (obj is Library) {
251 container.children = [
252 new LibraryViewElement(app.vm, obj.isolate, obj, app.events,
253 app.notifications,
254 _libraryRepository,
255 _fieldRepository,
256 _retainedSizeRepository,
257 _reachableSizeRepository,
258 _inboundReferencesRepository,
259 _retainingPathRepository,
260 _scriptRepository,
261 _instanceRepository,
262 _evalRepository,
263 queue: app.queue)
264 ];
256 } else if (obj is MegamorphicCache) { 265 } else if (obj is MegamorphicCache) {
257 container.children = [ 266 container.children = [
258 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, 267 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events,
259 app.notifications, 268 app.notifications,
260 _megamorphicCacheRepository, 269 _megamorphicCacheRepository,
261 _retainedSizeRepository, 270 _retainedSizeRepository,
262 _reachableSizeRepository, 271 _reachableSizeRepository,
263 _inboundReferencesRepository, 272 _inboundReferencesRepository,
264 _retainingPathRepository, 273 _retainingPathRepository,
265 _instanceRepository, 274 _instanceRepository,
(...skipping 22 matching lines...) Expand all
288 new ScriptViewElement(app.vm, obj.isolate, obj, app.events, 297 new ScriptViewElement(app.vm, obj.isolate, obj, app.events,
289 app.notifications, 298 app.notifications,
290 _scriptRepository, 299 _scriptRepository,
291 _retainedSizeRepository, 300 _retainedSizeRepository,
292 _reachableSizeRepository, 301 _reachableSizeRepository,
293 _inboundReferencesRepository, 302 _inboundReferencesRepository,
294 _retainingPathRepository, 303 _retainingPathRepository,
295 _instanceRepository, 304 _instanceRepository,
296 pos: pos, queue: app.queue) 305 pos: pos, queue: app.queue)
297 ]; 306 ];
298 } else if (obj.kind == 'Object') { 307 } else if (obj.type == 'Object') {
299 container.children = [ 308 container.children = [
300 new ObjectViewElement(app.vm, obj.isolate, obj, app.events, 309 new ObjectViewElement(app.vm, obj.isolate, obj, app.events,
301 app.notifications, 310 app.notifications,
302 _objectRepository, 311 _objectRepository,
303 _retainedSizeRepository, 312 _retainedSizeRepository,
304 _reachableSizeRepository, 313 _reachableSizeRepository,
305 _inboundReferencesRepository, 314 _inboundReferencesRepository,
306 _retainingPathRepository, 315 _retainingPathRepository,
307 _instanceRepository, 316 _instanceRepository,
308 queue: app.queue) 317 queue: app.queue)
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 assert(element != null); 711 assert(element != null);
703 } 712 }
704 713
705 void _visit(Uri uri) { 714 void _visit(Uri uri) {
706 assert(element != null); 715 assert(element != null);
707 assert(canVisit(uri)); 716 assert(canVisit(uri));
708 } 717 }
709 718
710 bool canVisit(Uri uri) => uri.path == 'timeline'; 719 bool canVisit(Uri uri) => uri.path == 'timeline';
711 } 720 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/repositories.dart ('k') | runtime/observatory/lib/src/elements/css/shared.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698