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

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

Issue 2291233002: Converted Observatory instance-view element (Closed)
Patch Set: Addressed comments 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 AllocationProfileRepository _allocationProfileRepository
8 = new AllocationProfileRepository(); 8 = new AllocationProfileRepository();
9 BreakpointRepository _breakpointRepository = new BreakpointRepository();
9 ClassRepository _classRepository = new ClassRepository(); 10 ClassRepository _classRepository = new ClassRepository();
10 ContextRepository _contextRepository = new ContextRepository(); 11 ContextRepository _contextRepository = new ContextRepository();
12 EvalRepository _evalRepository = new EvalRepository();
11 FieldRepository _fieldRepository = new FieldRepository(); 13 FieldRepository _fieldRepository = new FieldRepository();
12 FunctionRepository _functionRepository = new FunctionRepository(); 14 FunctionRepository _functionRepository = new FunctionRepository();
13 HeapSnapshotRepository _heapSnapshotRepository 15 HeapSnapshotRepository _heapSnapshotRepository
14 = new HeapSnapshotRepository(); 16 = new HeapSnapshotRepository();
15 ICDataRepository _icdataRepository = new ICDataRepository(); 17 ICDataRepository _icdataRepository = new ICDataRepository();
16 InboundReferencesRepository _inboundReferencesRepository 18 InboundReferencesRepository _inboundReferencesRepository
17 = new InboundReferencesRepository(); 19 = new InboundReferencesRepository();
18 InstanceRepository _instanceRepository = new InstanceRepository(); 20 InstanceRepository _instanceRepository = new InstanceRepository();
19 IsolateSampleProfileRepository _isolateSampleProfileRepository 21 IsolateSampleProfileRepository _isolateSampleProfileRepository
20 = new IsolateSampleProfileRepository(); 22 = new IsolateSampleProfileRepository();
21 MegamorphicCacheRepository _megamorphicCacheRepository 23 MegamorphicCacheRepository _megamorphicCacheRepository
22 = new MegamorphicCacheRepository(); 24 = new MegamorphicCacheRepository();
23 ObjectPoolRepository _objectPoolRepository 25 ObjectPoolRepository _objectPoolRepository
24 = new ObjectPoolRepository(); 26 = new ObjectPoolRepository();
25 ObjectStoreRepository _objectstoreRepository 27 ObjectStoreRepository _objectstoreRepository
26 = new ObjectStoreRepository(); 28 = new ObjectStoreRepository();
27 PersistentHandlesRepository _persistentHandlesRepository 29 PersistentHandlesRepository _persistentHandlesRepository
28 = new PersistentHandlesRepository(); 30 = new PersistentHandlesRepository();
29 PortsRepository _portsRepository = new PortsRepository(); 31 PortsRepository _portsRepository = new PortsRepository();
30 ScriptRepository _scriptRepository = new ScriptRepository(); 32 ScriptRepository _scriptRepository = new ScriptRepository();
33 TypeArgumentsRepository _typeArgumentsRepository
34 = new TypeArgumentsRepository();
31 35
32 class IsolateNotFound implements Exception { 36 class IsolateNotFound implements Exception {
33 String isolateId; 37 String isolateId;
34 IsolateNotFound(this.isolateId); 38 IsolateNotFound(this.isolateId);
35 String toString() => "IsolateNotFound: $isolateId"; 39 String toString() => "IsolateNotFound: $isolateId";
36 } 40 }
37 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); 41 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository();
38 ReachableSizeRepository _reachableSizeRepository 42 ReachableSizeRepository _reachableSizeRepository
39 = new ReachableSizeRepository(); 43 = new ReachableSizeRepository();
40 RetainingPathRepository _retainingPathRepository 44 RetainingPathRepository _retainingPathRepository
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 _fieldRepository, 223 _fieldRepository,
220 _classRepository, 224 _classRepository,
221 _retainedSizeRepository, 225 _retainedSizeRepository,
222 _reachableSizeRepository, 226 _reachableSizeRepository,
223 _inboundReferencesRepository, 227 _inboundReferencesRepository,
224 _retainingPathRepository, 228 _retainingPathRepository,
225 _scriptRepository, 229 _scriptRepository,
226 _instanceRepository, 230 _instanceRepository,
227 queue: app.queue) 231 queue: app.queue)
228 ]; 232 ];
233 } else if (obj is Instance) {
234 container.children = [
235 new InstanceViewElement(app.vm, obj.isolate, obj, app.events,
236 app.notifications,
237 _instanceRepository,
238 _classRepository,
239 _retainedSizeRepository,
240 _reachableSizeRepository,
241 _inboundReferencesRepository,
242 _retainingPathRepository,
243 _scriptRepository,
244 _evalRepository,
245 _typeArgumentsRepository,
246 _breakpointRepository,
247 _functionRepository,
248 queue: app.queue)
249 ];
229 } else if (obj is ServiceFunction) { 250 } else if (obj is ServiceFunction) {
230 container.children = [ 251 container.children = [
231 new FunctionViewElement(app.vm, obj.isolate, obj, app.events, 252 new FunctionViewElement(app.vm, obj.isolate, obj, app.events,
232 app.notifications, 253 app.notifications,
233 _functionRepository, 254 _functionRepository,
234 _classRepository, 255 _classRepository,
235 _retainedSizeRepository, 256 _retainedSizeRepository,
236 _reachableSizeRepository, 257 _reachableSizeRepository,
237 _inboundReferencesRepository, 258 _inboundReferencesRepository,
238 _retainingPathRepository, 259 _retainingPathRepository,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 new ScriptViewElement(app.vm, obj.isolate, obj, app.events, 308 new ScriptViewElement(app.vm, obj.isolate, obj, app.events,
288 app.notifications, 309 app.notifications,
289 _scriptRepository, 310 _scriptRepository,
290 _retainedSizeRepository, 311 _retainedSizeRepository,
291 _reachableSizeRepository, 312 _reachableSizeRepository,
292 _inboundReferencesRepository, 313 _inboundReferencesRepository,
293 _retainingPathRepository, 314 _retainingPathRepository,
294 _instanceRepository, 315 _instanceRepository,
295 pos: pos, queue: app.queue) 316 pos: pos, queue: app.queue)
296 ]; 317 ];
318 } else if (obj is Sentinel) {
319 container.children = [
320 new SentinelViewElement(app.vm, obj.isolate, obj, app.events,
321 app.notifications, queue: app.queue)
322 ];
297 } else { 323 } else {
298 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); 324 ServiceObjectViewElement serviceElement =new Element.tag('service-view');
299 serviceElement.object = obj; 325 serviceElement.object = obj;
300 container.children = [serviceElement]; 326 container.children = [serviceElement];
301 } 327 }
302 } 328 }
303 } 329 }
304 330
305 331
306 /// Class tree page. 332 /// Class tree page.
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 assert(element != null); 715 assert(element != null);
690 } 716 }
691 717
692 void _visit(Uri uri) { 718 void _visit(Uri uri) {
693 assert(element != null); 719 assert(element != null);
694 assert(canVisit(uri)); 720 assert(canVisit(uri));
695 } 721 }
696 722
697 bool canVisit(Uri uri) => uri.path == 'timeline'; 723 bool canVisit(Uri uri) => uri.path == 'timeline';
698 } 724 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/repositories.dart ('k') | runtime/observatory/lib/src/elements/context_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698