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); |