| 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 } | 17 } |
| 18 | 18 |
| 19 enum IsolateStatus { | 19 enum IsolateStatus { loading, idle, running, paused } |
| 20 loading, | |
| 21 idle, | |
| 22 running, | |
| 23 paused | |
| 24 } | |
| 25 | 20 |
| 26 abstract class Isolate extends IsolateRef { | 21 abstract class Isolate extends IsolateRef { |
| 27 /// The time that the VM started in milliseconds since the epoch. | 22 /// The time that the VM started in milliseconds since the epoch. |
| 28 DateTime get startTime; | 23 DateTime get startTime; |
| 29 | 24 |
| 30 /// Is the isolate in a runnable state? | 25 /// Is the isolate in a runnable state? |
| 31 bool get runnable; | 26 bool get runnable; |
| 32 | 27 |
| 33 /// The number of live ports for this isolate. | 28 /// The number of live ports for this isolate. |
| 34 //int get livePorts; | 29 //int get livePorts; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 65 | 60 |
| 66 Map get counters; | 61 Map get counters; |
| 67 HeapSpace get newSpace; | 62 HeapSpace get newSpace; |
| 68 HeapSpace get oldSpace; | 63 HeapSpace get oldSpace; |
| 69 | 64 |
| 70 IsolateStatus get status; | 65 IsolateStatus get status; |
| 71 | 66 |
| 72 /// [optional] | 67 /// [optional] |
| 73 FunctionRef get entry; | 68 FunctionRef get entry; |
| 74 } | 69 } |
| OLD | NEW |