| 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 HeapSnapshotLoadingStatus { fetching, loading, loaded } | 7 enum HeapSnapshotLoadingStatus { fetching, loading, loaded } |
| 8 | 8 |
| 9 bool isHeapSnapshotProgressRunning(HeapSnapshotLoadingStatus status) { | 9 bool isHeapSnapshotProgressRunning(HeapSnapshotLoadingStatus status) { |
| 10 switch (status) { | 10 switch (status) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 abstract class HeapSnapshotLoadingProgress { | 23 abstract class HeapSnapshotLoadingProgress { |
| 24 HeapSnapshotLoadingStatus get status; | 24 HeapSnapshotLoadingStatus get status; |
| 25 String get stepDescription; | 25 String get stepDescription; |
| 26 double get progress; | 26 double get progress; |
| 27 Duration get fetchingTime; | 27 Duration get fetchingTime; |
| 28 Duration get loadingTime; | 28 Duration get loadingTime; |
| 29 HeapSnapshot get snapshot; | 29 HeapSnapshot get snapshot; |
| 30 } | 30 } |
| 31 | 31 |
| 32 abstract class HeapSnapshotRepository { | 32 abstract class HeapSnapshotRepository { |
| 33 Stream<HeapSnapshotLoadingProgressEvent> get( | 33 Stream<HeapSnapshotLoadingProgressEvent> get(IsolateRef isolate, |
| 34 IsolateRef isolate, | 34 {HeapSnapshotRoots roots: HeapSnapshotRoots.vm, bool gc: false}); |
| 35 {HeapSnapshotRoots roots: HeapSnapshotRoots.vm, | |
| 36 bool gc: false}); | |
| 37 } | 35 } |
| OLD | NEW |