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 class IsolateNotFound implements Exception { | 7 class IsolateNotFound implements Exception { |
8 String isolateId; | 8 String isolateId; |
9 IsolateNotFound(this.isolateId); | 9 IsolateNotFound(this.isolateId); |
10 String toString() => "IsolateNotFound: $isolateId"; | 10 String toString() => "IsolateNotFound: $isolateId"; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 super._visit(uri); | 259 super._visit(uri); |
260 getIsolate(uri).then((isolate) { | 260 getIsolate(uri).then((isolate) { |
261 if (element != null) { | 261 if (element != null) { |
262 PortsPageElement page = element; | 262 PortsPageElement page = element; |
263 page.isolate = isolate; | 263 page.isolate = isolate; |
264 } | 264 } |
265 }); | 265 }); |
266 } | 266 } |
267 } | 267 } |
268 | 268 |
| 269 class PersistentHandlesPage extends SimplePage { |
| 270 PersistentHandlesPage(app) |
| 271 : super('persistent-handles', 'persistent-handles-page', app); |
| 272 |
| 273 void _visit(Uri uri) { |
| 274 super._visit(uri); |
| 275 getIsolate(uri).then((isolate) { |
| 276 if (element != null) { |
| 277 PersistentHandlesPageElement page = element; |
| 278 page.isolate = isolate; |
| 279 } |
| 280 }); |
| 281 } |
| 282 } |
| 283 |
269 class HeapMapPage extends SimplePage { | 284 class HeapMapPage extends SimplePage { |
270 HeapMapPage(app) : super('heap-map', 'heap-map', app); | 285 HeapMapPage(app) : super('heap-map', 'heap-map', app); |
271 | 286 |
272 void _visit(Uri uri) { | 287 void _visit(Uri uri) { |
273 super._visit(uri); | 288 super._visit(uri); |
274 getIsolate(uri).then((isolate) { | 289 getIsolate(uri).then((isolate) { |
275 if (element != null) { | 290 if (element != null) { |
276 /// Update the page. | 291 /// Update the page. |
277 HeapMapElement page = element; | 292 HeapMapElement page = element; |
278 page.isolate = isolate; | 293 page.isolate = isolate; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 assert(element != null); | 453 assert(element != null); |
439 } | 454 } |
440 | 455 |
441 void _visit(Uri uri) { | 456 void _visit(Uri uri) { |
442 assert(element != null); | 457 assert(element != null); |
443 assert(canVisit(uri)); | 458 assert(canVisit(uri)); |
444 } | 459 } |
445 | 460 |
446 bool canVisit(Uri uri) => uri.path == 'timeline'; | 461 bool canVisit(Uri uri) => uri.path == 'timeline'; |
447 } | 462 } |
OLD | NEW |