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

Unified Diff: runtime/observatory/lib/src/models/repositories/sample_profile.dart

Issue 2771293003: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… (Closed)
Patch Set: Added page to Observatory to display native memory allocation information. 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/models/repositories/sample_profile.dart
diff --git a/runtime/observatory/lib/src/models/repositories/sample_profile.dart b/runtime/observatory/lib/src/models/repositories/sample_profile.dart
index 9f8e80ea7e18e18cba307a75f1f120f6d231f176..ed38ba65243de1df3ac203c4af318144c7dfd45d 100644
--- a/runtime/observatory/lib/src/models/repositories/sample_profile.dart
+++ b/runtime/observatory/lib/src/models/repositories/sample_profile.dart
@@ -8,6 +8,8 @@ enum SampleProfileTag { userVM, userOnly, vmUser, vmOnly, none }
enum SampleProfileLoadingStatus { disabled, fetching, loading, loaded }
+enum SampleProfileType { cpu, memory }
+
bool isSampleProcessRunning(SampleProfileLoadingStatus status) {
switch (status) {
case SampleProfileLoadingStatus.fetching:
@@ -42,3 +44,8 @@ abstract class IsolateSampleProfileRepository {
IsolateRef isolate, SampleProfileTag tag,
{bool clear: false, bool forceFetch: false});
}
+
+abstract class NativeMemorySampleProfileRepository {
+ Stream<SampleProfileLoadingProgressEvent> get(VM vm, SampleProfileTag tag,
+ {bool clear: false, bool forceFetch: false});
+}
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_view.dart ('k') | runtime/observatory/lib/src/repositories/sample_profile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698