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

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

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Refactoring Created 4 years, 4 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file
4
5 part of models;
6
7 enum SampleProfileTag {
8 UserVM,
Cutch 2016/08/04 15:35:52 lowerCamelCase (here and elsewhere)
cbernaschina 2016/08/04 19:45:08 Done.
9 UserOnly,
10 VMUser,
11 VMOnly,
12 None
13 }
14
15 enum SampleProfileLoadingStatus {
16 Disabled,
17 Fetching,
18 Loading,
19 Loaded
20 }
21
22 abstract class SampleProfileLoadingProgressEvent {
23 SampleProfileLoadingProgress get progress;
24 }
25
26 abstract class SampleProfileLoadingProgress {
27 SampleProfileLoadingStatus get status;
28 double get progress;
29 Duration get fetchingTime;
30 Duration get loadingTime;
31 SampleProfile get profile;
32
33 Stream<SampleProfileLoadingProgressEvent> get onProgress;
34 }
35
36 abstract class ClassSampleProfileRepository {
37 SampleProfileLoadingProgress get(ClassRef cls,
38 SampleProfileTag tag, {bool clear: false});
39 }
40
41 abstract class IsolateSampleProfileRepository {
42 SampleProfileLoadingProgress get(IsolateRef cls,
43 SampleProfileTag tag, {bool clear: false, bool forceFetch: false});
44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698