Index: runtime/observatory/lib/src/app/page.dart |
diff --git a/runtime/observatory/lib/src/app/page.dart b/runtime/observatory/lib/src/app/page.dart |
index 1151f67c6a4471430bde3bc55c8bb674992df5ba..d678926836e7b5bd7e169bd4c54a87740e65c607 100644 |
--- a/runtime/observatory/lib/src/app/page.dart |
+++ b/runtime/observatory/lib/src/app/page.dart |
@@ -250,6 +250,21 @@ class AllocationProfilerPage extends SimplePage { |
} |
} |
+class PortsPage extends SimplePage { |
+ PortsPage(app) |
+ : super('ports', 'ports-page', app); |
+ |
+ void _visit(Uri uri) { |
+ super._visit(uri); |
+ getIsolate(uri).then((isolate) { |
+ if (element != null) { |
+ PortsPageElement page = element; |
+ page.isolate = isolate; |
+ } |
+ }); |
+ } |
+} |
+ |
class HeapMapPage extends SimplePage { |
HeapMapPage(app) : super('heap-map', 'heap-map', app); |