| OLD | NEW |
| 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 ContextRepository _contextRepository = new ContextRepository(); | 10 ContextRepository _contextRepository = new ContextRepository(); |
| 11 FieldRepository _fieldRepository = new FieldRepository(); |
| 10 HeapSnapshotRepository _heapSnapshotRepository | 12 HeapSnapshotRepository _heapSnapshotRepository |
| 11 = new HeapSnapshotRepository(); | 13 = new HeapSnapshotRepository(); |
| 12 ICDataRepository _icdataRepository = new ICDataRepository(); | 14 ICDataRepository _icdataRepository = new ICDataRepository(); |
| 13 InboundReferencesRepository _inboundReferencesRepository | 15 InboundReferencesRepository _inboundReferencesRepository |
| 14 = new InboundReferencesRepository(); | 16 = new InboundReferencesRepository(); |
| 15 InstanceRepository _instanceRepository = new InstanceRepository(); | 17 InstanceRepository _instanceRepository = new InstanceRepository(); |
| 16 IsolateSampleProfileRepository _isolateSampleProfileRepository | 18 IsolateSampleProfileRepository _isolateSampleProfileRepository |
| 17 = new IsolateSampleProfileRepository(); | 19 = new IsolateSampleProfileRepository(); |
| 18 MegamorphicCacheRepository _megamorphicCacheRepository | 20 MegamorphicCacheRepository _megamorphicCacheRepository |
| 19 = new MegamorphicCacheRepository(); | 21 = new MegamorphicCacheRepository(); |
| 20 ObjectStoreRepository _objectstoreRepository | 22 ObjectStoreRepository _objectstoreRepository |
| 21 = new ObjectStoreRepository(); | 23 = new ObjectStoreRepository(); |
| 22 PersistentHandlesRepository _persistentHandlesRepository | 24 PersistentHandlesRepository _persistentHandlesRepository |
| 23 = new PersistentHandlesRepository(); | 25 = new PersistentHandlesRepository(); |
| 24 PortsRepository _portsRepository = new PortsRepository(); | 26 PortsRepository _portsRepository = new PortsRepository(); |
| 27 ScriptRepository _scriptRepository = new ScriptRepository(); |
| 25 | 28 |
| 26 class IsolateNotFound implements Exception { | 29 class IsolateNotFound implements Exception { |
| 27 String isolateId; | 30 String isolateId; |
| 28 IsolateNotFound(this.isolateId); | 31 IsolateNotFound(this.isolateId); |
| 29 String toString() => "IsolateNotFound: $isolateId"; | 32 String toString() => "IsolateNotFound: $isolateId"; |
| 30 } | 33 } |
| 31 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); | 34 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); |
| 32 ReachableSizeRepository _reachableSizeRepository | 35 ReachableSizeRepository _reachableSizeRepository |
| 33 = new ReachableSizeRepository(); | 36 = new ReachableSizeRepository(); |
| 34 RetainingPathRepository _retainingPathRepository | 37 RetainingPathRepository _retainingPathRepository |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 _reachableSizeRepository, | 200 _reachableSizeRepository, |
| 198 _inboundReferencesRepository, | 201 _inboundReferencesRepository, |
| 199 _retainingPathRepository, | 202 _retainingPathRepository, |
| 200 _instanceRepository, | 203 _instanceRepository, |
| 201 queue: app.queue) | 204 queue: app.queue) |
| 202 ]; | 205 ]; |
| 203 } else if (obj is DartError) { | 206 } else if (obj is DartError) { |
| 204 container.children = [ | 207 container.children = [ |
| 205 new ErrorViewElement(app.notifications, obj, queue: app.queue) | 208 new ErrorViewElement(app.notifications, obj, queue: app.queue) |
| 206 ]; | 209 ]; |
| 210 } else if (obj is Field) { |
| 211 container.children = [ |
| 212 new FieldViewElement(app.vm, obj.isolate, obj, app.events, |
| 213 app.notifications, |
| 214 _fieldRepository, |
| 215 _classRepository, |
| 216 _retainedSizeRepository, |
| 217 _reachableSizeRepository, |
| 218 _inboundReferencesRepository, |
| 219 _retainingPathRepository, |
| 220 _scriptRepository, |
| 221 _instanceRepository, |
| 222 queue: app.queue) |
| 223 ]; |
| 207 } else if (obj is ICData) { | 224 } else if (obj is ICData) { |
| 208 container.children = [ | 225 container.children = [ |
| 209 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, | 226 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, |
| 210 app.notifications, | 227 app.notifications, |
| 211 _icdataRepository, | 228 _icdataRepository, |
| 212 _retainedSizeRepository, | 229 _retainedSizeRepository, |
| 213 _reachableSizeRepository, | 230 _reachableSizeRepository, |
| 214 _inboundReferencesRepository, | 231 _inboundReferencesRepository, |
| 215 _retainingPathRepository, | 232 _retainingPathRepository, |
| 216 _instanceRepository, | 233 _instanceRepository, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 266 } |
| 250 | 267 |
| 251 void _visit(Uri uri) { | 268 void _visit(Uri uri) { |
| 252 super._visit(uri); | 269 super._visit(uri); |
| 253 getIsolate(uri).then((isolate) { | 270 getIsolate(uri).then((isolate) { |
| 254 container.children = [ | 271 container.children = [ |
| 255 new ClassTreeElement(app.vm, | 272 new ClassTreeElement(app.vm, |
| 256 isolate, | 273 isolate, |
| 257 app.events, | 274 app.events, |
| 258 app.notifications, | 275 app.notifications, |
| 259 new ClassRepository(isolate)) | 276 _classRepository) |
| 260 ]; | 277 ]; |
| 261 }); | 278 }); |
| 262 } | 279 } |
| 263 } | 280 } |
| 264 | 281 |
| 265 class DebuggerPage extends SimplePage { | 282 class DebuggerPage extends SimplePage { |
| 266 DebuggerPage(app) : super('debugger', 'debugger-page', app); | 283 DebuggerPage(app) : super('debugger', 'debugger-page', app); |
| 267 | 284 |
| 268 void _visit(Uri uri) { | 285 void _visit(Uri uri) { |
| 269 super._visit(uri); | 286 super._visit(uri); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 assert(element != null); | 640 assert(element != null); |
| 624 } | 641 } |
| 625 | 642 |
| 626 void _visit(Uri uri) { | 643 void _visit(Uri uri) { |
| 627 assert(element != null); | 644 assert(element != null); |
| 628 assert(canVisit(uri)); | 645 assert(canVisit(uri)); |
| 629 } | 646 } |
| 630 | 647 |
| 631 bool canVisit(Uri uri) => uri.path == 'timeline'; | 648 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 632 } | 649 } |
| OLD | NEW |