| 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 abstract class IsolateRef { | 7 abstract class IsolateRef { |
| 8 /// The id which is passed to the getIsolate RPC to reload this | 8 /// The id which is passed to the getIsolate RPC to reload this |
| 9 /// isolate. | 9 /// isolate. |
| 10 String get id; | 10 String get id; |
| 11 | 11 |
| 12 /// A numeric id for this isolate, represented as a string. Unique. | 12 /// A numeric id for this isolate, represented as a string. Unique. |
| 13 int get number; | 13 int get number; |
| 14 | 14 |
| 15 /// A name identifying this isolate. Not guaranteed to be unique. | 15 /// A name identifying this isolate. Not guaranteed to be unique. |
| 16 String get name; | 16 String get name; |
| 17 |
| 18 /// Trigger a full GC, collecting all unreachable or weakly reachable objects. |
| 19 Future collectAllGarbage(); |
| 17 } | 20 } |
| 18 | 21 |
| 19 enum IsolateStatus { loading, idle, running, paused } | 22 enum IsolateStatus { loading, idle, running, paused } |
| 20 | 23 |
| 21 abstract class Isolate extends IsolateRef { | 24 abstract class Isolate extends IsolateRef { |
| 22 /// The time that the VM started in milliseconds since the epoch. | 25 /// The time that the VM started in milliseconds since the epoch. |
| 23 DateTime get startTime; | 26 DateTime get startTime; |
| 24 | 27 |
| 25 /// Is the isolate in a runnable state? | 28 /// Is the isolate in a runnable state? |
| 26 bool get runnable; | 29 bool get runnable; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 77 |
| 75 Map get counters; | 78 Map get counters; |
| 76 HeapSpace get newSpace; | 79 HeapSpace get newSpace; |
| 77 HeapSpace get oldSpace; | 80 HeapSpace get oldSpace; |
| 78 | 81 |
| 79 IsolateStatus get status; | 82 IsolateStatus get status; |
| 80 | 83 |
| 81 /// [optional] | 84 /// [optional] |
| 82 FunctionRef get entry; | 85 FunctionRef get entry; |
| 83 } | 86 } |
| OLD | NEW |