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

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

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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 HeapSnapshotLoadingStatus { 7 enum HeapSnapshotLoadingStatus { fetching, loading, loaded }
8 fetching,
9 loading,
10 loaded
11 }
12 8
13 bool isHeapSnapshotProgressRunning(HeapSnapshotLoadingStatus status) { 9 bool isHeapSnapshotProgressRunning(HeapSnapshotLoadingStatus status) {
14 switch (status) { 10 switch (status) {
15 case HeapSnapshotLoadingStatus.fetching: 11 case HeapSnapshotLoadingStatus.fetching:
16 case HeapSnapshotLoadingStatus.loading: 12 case HeapSnapshotLoadingStatus.loading:
17 return true; 13 return true;
18 default: 14 default:
19 return false; 15 return false;
20 } 16 }
21 } 17 }
22 18
23 abstract class HeapSnapshotLoadingProgressEvent { 19 abstract class HeapSnapshotLoadingProgressEvent {
24 HeapSnapshotLoadingProgress get progress; 20 HeapSnapshotLoadingProgress get progress;
25 } 21 }
26 22
27 abstract class HeapSnapshotLoadingProgress { 23 abstract class HeapSnapshotLoadingProgress {
28 HeapSnapshotLoadingStatus get status; 24 HeapSnapshotLoadingStatus get status;
29 String get stepDescription; 25 String get stepDescription;
30 double get progress; 26 double get progress;
31 Duration get fetchingTime; 27 Duration get fetchingTime;
32 Duration get loadingTime; 28 Duration get loadingTime;
33 HeapSnapshot get snapshot; 29 HeapSnapshot get snapshot;
34 } 30 }
35 31
36 abstract class HeapSnapshotRepository { 32 abstract class HeapSnapshotRepository {
37 Stream<HeapSnapshotLoadingProgressEvent> get(IsolateRef isolate, 33 Stream<HeapSnapshotLoadingProgressEvent> get(IsolateRef isolate,
38 {bool gc: false}); 34 {bool gc: false});
39 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698