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 { | 7 enum SampleProfileTag { |
8 userVM, | 8 userVM, |
9 userOnly, | 9 userOnly, |
10 vmUser, | 10 vmUser, |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 abstract class SampleProfileLoadingProgress { | 36 abstract class SampleProfileLoadingProgress { |
37 SampleProfileLoadingStatus get status; | 37 SampleProfileLoadingStatus get status; |
38 double get progress; | 38 double get progress; |
39 Duration get fetchingTime; | 39 Duration get fetchingTime; |
40 Duration get loadingTime; | 40 Duration get loadingTime; |
41 SampleProfile get profile; | 41 SampleProfile get profile; |
42 } | 42 } |
43 | 43 |
44 abstract class ClassSampleProfileRepository { | 44 abstract class ClassSampleProfileRepository { |
45 Stream<SampleProfileLoadingProgressEvent> get(ClassRef cls, | 45 Stream<SampleProfileLoadingProgressEvent> get(IsolateRef isolate, |
46 SampleProfileTag tag, {bool clear: false}); | 46 ClassRef cls, SampleProfileTag tag); |
| 47 Future enable(IsolateRef isolate, ClassRef cls); |
| 48 Future disable(IsolateRef isolate, ClassRef cls); |
47 } | 49 } |
48 | 50 |
49 abstract class IsolateSampleProfileRepository { | 51 abstract class IsolateSampleProfileRepository { |
50 Stream<SampleProfileLoadingProgressEvent> get(IsolateRef cls, | 52 Stream<SampleProfileLoadingProgressEvent> get(IsolateRef isolate, |
51 SampleProfileTag tag, {bool clear: false, bool forceFetch: false}); | 53 SampleProfileTag tag, {bool clear: false, bool forceFetch: false}); |
52 } | 54 } |
OLD | NEW |