| 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 { |
| 20 loading, |
| 21 idle, |
| 22 running, |
| 23 paused |
| 24 } |
| 25 |
| 19 abstract class Isolate extends IsolateRef { | 26 abstract class Isolate extends IsolateRef { |
| 20 /// The time that the VM started in milliseconds since the epoch. | 27 /// The time that the VM started in milliseconds since the epoch. |
| 21 DateTime get startTime; | 28 DateTime get startTime; |
| 22 | 29 |
| 23 /// Is the isolate in a runnable state? | 30 /// Is the isolate in a runnable state? |
| 24 bool get runnable; | 31 bool get runnable; |
| 25 | 32 |
| 26 /// The number of live ports for this isolate. | 33 /// The number of live ports for this isolate. |
| 27 //int get livePorts; | 34 //int get livePorts; |
| 28 | 35 |
| 29 /// Will this isolate pause when exiting? | 36 /// Will this isolate pause when exiting? |
| 30 //bool get pauseOnExit; | 37 //bool get pauseOnExit; |
| 31 | 38 |
| 32 /// The last pause event delivered to the isolate. If the isolate is | 39 /// The last pause event delivered to the isolate. If the isolate is |
| 33 /// running, this will be a resume event. | 40 /// running, this will be a resume event. |
| 34 //Event get pauseEvent; | 41 Event get pauseEvent; |
| 35 | 42 |
| 36 /// [optional] The root library for this isolate. | 43 /// [optional] The root library for this isolate. |
| 37 /// | 44 /// |
| 38 /// Guaranteed to be initialized when the IsolateRunnable event fires. | 45 /// Guaranteed to be initialized when the IsolateRunnable event fires. |
| 39 //LibraryRef get rootLib; | 46 LibraryRef get rootLibrary; |
| 40 | 47 |
| 41 /// A list of all libraries for this isolate. | 48 /// A list of all libraries for this isolate. |
| 42 /// | 49 /// |
| 43 /// Guaranteed to be initialized when the IsolateRunnable event fires. | 50 /// Guaranteed to be initialized when the IsolateRunnable event fires. |
| 44 Iterable<LibraryRef> get libraries; | 51 Iterable<LibraryRef> get libraries; |
| 45 | 52 |
| 46 /// A list of all breakpoints for this isolate. | 53 /// A list of all breakpoints for this isolate. |
| 47 //Iterable<Breakpoint> get breakpoints; | 54 //Iterable<Breakpoint> get breakpoints; |
| 48 | 55 |
| 49 /// [optional] The error that is causing this isolate to exit, if applicable. | 56 /// [optional] The error that is causing this isolate to exit, if applicable. |
| 50 Error get error; | 57 Error get error; |
| 51 | 58 |
| 52 /// The current pause on exception mode for this isolate. | 59 /// The current pause on exception mode for this isolate. |
| 53 //ExceptionPauseMode get exceptionPauseMode; | 60 //ExceptionPauseMode get exceptionPauseMode; |
| 54 | 61 |
| 55 /// [optional]The list of service extension RPCs that are registered for this | 62 /// [optional] The list of service extension RPCs that are registered for this |
| 56 /// isolate, if any. | 63 /// isolate, if any. |
| 57 Iterable<String> get extensionRPCs; | 64 Iterable<String> get extensionRPCs; |
| 58 | 65 |
| 59 Map get counters; | 66 Map get counters; |
| 60 HeapSpace get newSpace; | 67 HeapSpace get newSpace; |
| 61 HeapSpace get oldSpace; | 68 HeapSpace get oldSpace; |
| 69 |
| 70 IsolateStatus get status; |
| 71 |
| 72 /// [optional] |
| 73 FunctionRef get entry; |
| 62 } | 74 } |
| OLD | NEW |