| 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 075203f1bbac4d4f6037f35e7488988cdce9060c..9f8e80ea7e18e18cba307a75f1f120f6d231f176 100644
|
| --- a/runtime/observatory/lib/src/models/repositories/sample_profile.dart
|
| +++ b/runtime/observatory/lib/src/models/repositories/sample_profile.dart
|
| @@ -4,20 +4,9 @@
|
|
|
| part of models;
|
|
|
| -enum SampleProfileTag {
|
| - userVM,
|
| - userOnly,
|
| - vmUser,
|
| - vmOnly,
|
| - none
|
| -}
|
| +enum SampleProfileTag { userVM, userOnly, vmUser, vmOnly, none }
|
|
|
| -enum SampleProfileLoadingStatus {
|
| - disabled,
|
| - fetching,
|
| - loading,
|
| - loaded
|
| -}
|
| +enum SampleProfileLoadingStatus { disabled, fetching, loading, loaded }
|
|
|
| bool isSampleProcessRunning(SampleProfileLoadingStatus status) {
|
| switch (status) {
|
| @@ -42,13 +31,14 @@ abstract class SampleProfileLoadingProgress {
|
| }
|
|
|
| abstract class ClassSampleProfileRepository {
|
| - Stream<SampleProfileLoadingProgressEvent> get(IsolateRef isolate,
|
| - ClassRef cls, SampleProfileTag tag);
|
| + Stream<SampleProfileLoadingProgressEvent> get(
|
| + IsolateRef isolate, ClassRef cls, SampleProfileTag tag);
|
| Future enable(IsolateRef isolate, ClassRef cls);
|
| Future disable(IsolateRef isolate, ClassRef cls);
|
| }
|
|
|
| abstract class IsolateSampleProfileRepository {
|
| - Stream<SampleProfileLoadingProgressEvent> get(IsolateRef isolate,
|
| - SampleProfileTag tag, {bool clear: false, bool forceFetch: false});
|
| + Stream<SampleProfileLoadingProgressEvent> get(
|
| + IsolateRef isolate, SampleProfileTag tag,
|
| + {bool clear: false, bool forceFetch: false});
|
| }
|
|
|