| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file | 3 // BSD-style license that can be found in the LICENSE file |
| 4 | 4 |
| 5 part of models; | 5 part of models; |
| 6 | 6 |
| 7 enum SampleProfileTag { userVM, userOnly, vmUser, vmOnly, none } | 7 enum SampleProfileTag { userVM, userOnly, vmUser, vmOnly, none } |
| 8 | 8 |
| 9 enum SampleProfileLoadingStatus { disabled, fetching, loading, loaded } | 9 enum SampleProfileLoadingStatus { disabled, fetching, loading, loaded } |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 abstract class SampleProfileLoadingProgress { | 27 abstract class SampleProfileLoadingProgress { |
| 28 SampleProfileLoadingStatus get status; | 28 SampleProfileLoadingStatus get status; |
| 29 double get progress; | 29 double get progress; |
| 30 Duration get fetchingTime; | 30 Duration get fetchingTime; |
| 31 Duration get loadingTime; | 31 Duration get loadingTime; |
| 32 SampleProfile get profile; | 32 SampleProfile get profile; |
| 33 } | 33 } |
| 34 | 34 |
| 35 abstract class ClassSampleProfileRepository { | 35 abstract class ClassSampleProfileRepository { |
| 36 Stream<SampleProfileLoadingProgressEvent> get( | 36 Stream<SampleProfileLoadingProgressEvent> get( |
| 37 IsolateRef isolate, ClassRef cls, SampleProfileTag tag); | 37 IsolateRef isolate, ClassRef cls, SampleProfileTag tag, |
| 38 {bool clear: false, bool forceFetch: false}); |
| 38 Future enable(IsolateRef isolate, ClassRef cls); | 39 Future enable(IsolateRef isolate, ClassRef cls); |
| 39 Future disable(IsolateRef isolate, ClassRef cls); | 40 Future disable(IsolateRef isolate, ClassRef cls); |
| 40 } | 41 } |
| 41 | 42 |
| 42 abstract class IsolateSampleProfileRepository { | 43 abstract class IsolateSampleProfileRepository { |
| 43 Stream<SampleProfileLoadingProgressEvent> get( | 44 Stream<SampleProfileLoadingProgressEvent> get( |
| 44 IsolateRef isolate, SampleProfileTag tag, | 45 IsolateRef isolate, SampleProfileTag tag, |
| 45 {bool clear: false, bool forceFetch: false}); | 46 {bool clear: false, bool forceFetch: false}); |
| 46 } | 47 } |
| 47 | 48 |
| 48 abstract class NativeMemorySampleProfileRepository { | 49 abstract class NativeMemorySampleProfileRepository { |
| 49 Stream<SampleProfileLoadingProgressEvent> get(VM vm, SampleProfileTag tag, | 50 Stream<SampleProfileLoadingProgressEvent> get(VM vm, SampleProfileTag tag, |
| 50 {bool clear: false, bool forceFetch: false}); | 51 {bool clear: false, bool forceFetch: false}); |
| 51 } | 52 } |
| OLD | NEW |