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

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

Issue 1124153006: Heap snapshot visualizations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 275ecb0fb904597b96d2a07c5595b2e4a29ad9bf..1151f67c6a4471430bde3bc55c8bb674992df5ba 100644
--- a/runtime/observatory/lib/src/app/page.dart
+++ b/runtime/observatory/lib/src/app/page.dart
@@ -265,6 +265,21 @@ class HeapMapPage extends SimplePage {
}
}
+class HeapSnapshotPage extends SimplePage {
+ HeapSnapshotPage(app) : super('heap-snapshot', 'heap-snapshot', app);
+
+ void _visit(Uri uri) {
+ super._visit(uri);
+ getIsolate(uri).then((isolate) {
+ if (element != null) {
+ /// Update the page.
+ HeapSnapshotElement page = element;
+ page.isolate = isolate;
+ }
+ });
+ }
+}
+
class ErrorViewPage extends Page {
ErrorViewPage(app) : super(app);

Powered by Google App Engine
This is Rietveld 408576698