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

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

Issue 2271083002: Converted Observatory icdata-view element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed layout & text 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 ContextRepository _contextRepository = new ContextRepository(); 9 ContextRepository _contextRepository = new ContextRepository();
10 HeapSnapshotRepository _heapSnapshotRepository 10 HeapSnapshotRepository _heapSnapshotRepository
11 = new HeapSnapshotRepository(); 11 = new HeapSnapshotRepository();
12 ICDataRepository _icdataRepository = new ICDataRepository();
12 InboundReferencesRepository _inboundReferencesRepository 13 InboundReferencesRepository _inboundReferencesRepository
13 = new InboundReferencesRepository(); 14 = new InboundReferencesRepository();
14 InstanceRepository _instanceRepository = new InstanceRepository(); 15 InstanceRepository _instanceRepository = new InstanceRepository();
15 IsolateSampleProfileRepository _isolateSampleProfileRepository 16 IsolateSampleProfileRepository _isolateSampleProfileRepository
16 = new IsolateSampleProfileRepository(); 17 = new IsolateSampleProfileRepository();
17 PortsRepository _portsRepository = new PortsRepository(); 18 PortsRepository _portsRepository = new PortsRepository();
18 19
19 class IsolateNotFound implements Exception { 20 class IsolateNotFound implements Exception {
20 String isolateId; 21 String isolateId;
21 IsolateNotFound(this.isolateId); 22 IsolateNotFound(this.isolateId);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 new ContextViewElement(app.vm, obj.isolate, obj, app.events, 187 new ContextViewElement(app.vm, obj.isolate, obj, app.events,
187 app.notifications, 188 app.notifications,
188 _contextRepository, 189 _contextRepository,
189 _retainedSizeRepository, 190 _retainedSizeRepository,
190 _reachableSizeRepository, 191 _reachableSizeRepository,
191 _inboundReferencesRepository, 192 _inboundReferencesRepository,
192 _retainingPathRepository, 193 _retainingPathRepository,
193 _instanceRepository, 194 _instanceRepository,
194 queue: app.queue) 195 queue: app.queue)
195 ]; 196 ];
197 } else if (obj is ICData) {
198 container.children = [
199 new ICDataViewElement(app.vm, obj.isolate, obj, app.events,
200 app.notifications,
201 _icdataRepository,
202 _retainedSizeRepository,
203 _reachableSizeRepository,
204 _inboundReferencesRepository,
205 _retainingPathRepository,
206 _instanceRepository,
207 queue: app.queue)
208 ];
196 } else { 209 } else {
197 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); 210 ServiceObjectViewElement serviceElement =new Element.tag('service-view');
198 serviceElement.object = obj; 211 serviceElement.object = obj;
199 container.children = [serviceElement]; 212 container.children = [serviceElement];
200 } 213 }
201 } 214 }
202 } 215 }
203 216
204 217
205 /// Class tree page. 218 /// Class tree page.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 assert(element != null); 577 assert(element != null);
565 } 578 }
566 579
567 void _visit(Uri uri) { 580 void _visit(Uri uri) {
568 assert(element != null); 581 assert(element != null);
569 assert(canVisit(uri)); 582 assert(canVisit(uri));
570 } 583 }
571 584
572 bool canVisit(Uri uri) => uri.path == 'timeline'; 585 bool canVisit(Uri uri) => uri.path == 'timeline';
573 } 586 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/repositories.dart ('k') | runtime/observatory/lib/src/elements/context_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698