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

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

Issue 2778463002: Fixed missing method referenced when MallocHooks is unsupported. (Closed)
Patch Set: Fixed missing method referenced when MallocHooks is unsupported. 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 aaee452b135d35eb50b06d9c747b37b4c3060e33..ddbec83872f6d3baec7ea3a0ca6b4cd5ccbc8ad3 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 _objectPoolRepository = new ObjectPoolRepository();
final _objectRepository = new ObjectRepository();
final _objectstoreRepository = new ObjectStoreRepository();
@@ -190,6 +192,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