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

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

Issue 1013563002: CPU profile displayed in three tables with a tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 e79f3dc40ac6dd97c3b4d34dbc60446f5aa105e7..8b0d535b9cbe0ecf8ebbea1fcc0cc54f9f024e75 100644
--- a/runtime/observatory/lib/src/app/page.dart
+++ b/runtime/observatory/lib/src/app/page.dart
@@ -204,6 +204,23 @@ class CpuProfilerPage extends SimplePage {
}
}
+class TableCpuProfilerPage extends SimplePage {
+ TableCpuProfilerPage(app)
+ : super('profiler-table', 'cpu-profile-table', app);
+
+ void _visit(Uri uri) {
+ super._visit(uri);
+ getIsolate(uri).then((isolate) {
+ if (element != null) {
+ /// Update the page.
+ CpuProfileTableElement page = element;
+ page.isolate = isolate;
+ page.checkParameters();
+ }
+ });
+ }
+}
+
class AllocationProfilerPage extends SimplePage {
AllocationProfilerPage(app)
: super('allocation-profiler', 'heap-profile', app);

Powered by Google App Engine
This is Rietveld 408576698