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

Unified Diff: runtime/observatory/lib/src/app/page.dart

Issue 1189543003: Ports page for isolates (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698