Chromium Code Reviews| 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..e28554eecd7f1826af301c4c68df6b9cc924d663 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 } |
|
Cutch
2017/03/23 23:39:45
Why are there two enums that define the same keys?
bkonyi
2017/03/24 00:53:39
Completely forgot about this definition. Just goin
|
| + |
| bool isSampleProcessRunning(SampleProfileLoadingStatus status) { |
| switch (status) { |
| case SampleProfileLoadingStatus.fetching: |
| @@ -42,3 +44,9 @@ 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}); |
| +} |