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

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

Issue 2748403002: Added page to Observatory to display native memory allocation information. (Closed)
Patch Set: Final patch. Created 3 years, 9 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 e5fc6daee8af78d2f0232a783317505c8a1abce5..5819bb2469b3d512504a96c860fcdfbfe936d9ca 100644
--- a/runtime/observatory/lib/src/app/page.dart
+++ b/runtime/observatory/lib/src/app/page.dart
@@ -21,6 +21,8 @@ final _isolateSampleProfileRepository = new IsolateSampleProfileRepository();
final _libraryRepository = new LibraryRepository();
final _megamorphicCacheRepository = new MegamorphicCacheRepository();
final _metricRepository = new MetricRepository();
+final _nativeMemorySampleProfileRepository = new
+ NativeMemorySampleProfileRepository();
final _objectRepository = new ObjectRepository();
final _objectPoolRepository = new ObjectPoolRepository();
final _objectstoreRepository = new ObjectStoreRepository();
@@ -187,6 +189,24 @@ class FlagsPage extends SimplePage {
}
}
+class NativeMemoryProfilerPage extends SimplePage {
+ NativeMemoryProfilerPage(app) : super('native-memory-profile',
+ 'native-memory-profile', app);
+ @override
+ onInstall() {
+ if (element == null) {
+ element = new NativeMemoryProfileElement(app.vm, app.events,
+ app.notifications, _nativeMemorySampleProfileRepository,
+ queue: app.queue);
+ }
+ assert(element != null);
+ }
+
+ void _visit(Uri uri) {
+ super._visit(uri);
+ }
+}
+
class InspectPage extends MatchingPage {
InspectPage(app) : super('inspect', app);
« no previous file with comments | « runtime/observatory/lib/src/app/application.dart ('k') | runtime/observatory/lib/src/cpu_profile/cpu_profile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698