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

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

Issue 2283263002: Converted Observatory script-view element (Closed)
Patch Set: Removed dead code 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 ClassRepository _classRepository = new ClassRepository(); 9 ClassRepository _classRepository = new ClassRepository();
10 ContextRepository _contextRepository = new ContextRepository(); 10 ContextRepository _contextRepository = new ContextRepository();
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, 238 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events,
239 app.notifications, 239 app.notifications,
240 _megamorphicCacheRepository, 240 _megamorphicCacheRepository,
241 _retainedSizeRepository, 241 _retainedSizeRepository,
242 _reachableSizeRepository, 242 _reachableSizeRepository,
243 _inboundReferencesRepository, 243 _inboundReferencesRepository,
244 _retainingPathRepository, 244 _retainingPathRepository,
245 _instanceRepository, 245 _instanceRepository,
246 queue: app.queue) 246 queue: app.queue)
247 ]; 247 ];
248 } else if (obj is Script) {
249 var pos;
250 if (app.locationManager.internalArguments['pos'] != null) {
251 try {
252 pos = int.parse(app.locationManager.internalArguments['pos']);
253 } catch (_) {}
254 }
255 container.children = [
256 new ScriptViewElement(app.vm, obj.isolate, obj, app.events,
257 app.notifications,
258 _scriptRepository,
259 _retainedSizeRepository,
260 _reachableSizeRepository,
261 _inboundReferencesRepository,
262 _retainingPathRepository,
263 _instanceRepository,
264 pos: pos, queue: app.queue)
265 ];
248 } else { 266 } else {
249 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); 267 ServiceObjectViewElement serviceElement =new Element.tag('service-view');
250 serviceElement.object = obj; 268 serviceElement.object = obj;
251 container.children = [serviceElement]; 269 container.children = [serviceElement];
252 } 270 }
253 } 271 }
254 } 272 }
255 273
256 274
257 /// Class tree page. 275 /// Class tree page.
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 assert(element != null); 658 assert(element != null);
641 } 659 }
642 660
643 void _visit(Uri uri) { 661 void _visit(Uri uri) {
644 assert(element != null); 662 assert(element != null);
645 assert(canVisit(uri)); 663 assert(canVisit(uri));
646 } 664 }
647 665
648 bool canVisit(Uri uri) => uri.path == 'timeline'; 666 bool canVisit(Uri uri) => uri.path == 'timeline';
649 } 667 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/elements.html ('k') | runtime/observatory/lib/src/elements/css/shared.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698