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

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

Issue 2773073003: Revert "Added page to Observatory to display native memory allocation information." (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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
11 enum SampleProfileType { cpu, memory }
12
13 bool isSampleProcessRunning(SampleProfileLoadingStatus status) { 11 bool isSampleProcessRunning(SampleProfileLoadingStatus status) {
14 switch (status) { 12 switch (status) {
15 case SampleProfileLoadingStatus.fetching: 13 case SampleProfileLoadingStatus.fetching:
16 case SampleProfileLoadingStatus.loading: 14 case SampleProfileLoadingStatus.loading:
17 return true; 15 return true;
18 default: 16 default:
19 return false; 17 return false;
20 } 18 }
21 } 19 }
22 20
(...skipping 14 matching lines...) Expand all
37 IsolateRef isolate, ClassRef cls, SampleProfileTag tag); 35 IsolateRef isolate, ClassRef cls, SampleProfileTag tag);
38 Future enable(IsolateRef isolate, ClassRef cls); 36 Future enable(IsolateRef isolate, ClassRef cls);
39 Future disable(IsolateRef isolate, ClassRef cls); 37 Future disable(IsolateRef isolate, ClassRef cls);
40 } 38 }
41 39
42 abstract class IsolateSampleProfileRepository { 40 abstract class IsolateSampleProfileRepository {
43 Stream<SampleProfileLoadingProgressEvent> get( 41 Stream<SampleProfileLoadingProgressEvent> get(
44 IsolateRef isolate, SampleProfileTag tag, 42 IsolateRef isolate, SampleProfileTag tag,
45 {bool clear: false, bool forceFetch: false}); 43 {bool clear: false, bool forceFetch: false});
46 } 44 }
47
48 abstract class NativeMemorySampleProfileRepository {
49 Stream<SampleProfileLoadingProgressEvent> get(VM vm, SampleProfileTag tag,
50 {bool clear: false, bool forceFetch: false});
51 }
OLDNEW
« 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