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 VMRef { | 7 abstract class VMRef { |
8 /// A name identifying this vm. Not guaranteed to be unique. | 8 /// A name identifying this vm. Not guaranteed to be unique. |
9 String get name; | 9 String get name; |
10 | 10 |
11 /// [Not actually from the apis] | 11 /// [Not actually from the apis] |
12 /// A name used to identify the VM in the UI. | 12 /// A name used to identify the VM in the UI. |
13 String get displayName; | 13 String get displayName; |
14 } | 14 } |
15 | 15 |
16 abstract class VM implements VMRef { | 16 abstract class ServiceObjectOwner { |
| 17 Future<dynamic> invokeRpc(String method, Map params); |
| 18 } |
| 19 |
| 20 abstract class VM implements VMRef, ServiceObjectOwner { |
17 /// Word length on target architecture (e.g. 32, 64). | 21 /// Word length on target architecture (e.g. 32, 64). |
18 int get architectureBits; | 22 int get architectureBits; |
19 | 23 |
20 /// The CPU we are generating code for. | 24 /// The CPU we are generating code for. |
21 String get targetCPU; | 25 String get targetCPU; |
22 | 26 |
23 /// The CPU we are actually running on. | 27 /// The CPU we are actually running on. |
24 String get hostCPU; | 28 String get hostCPU; |
25 | 29 |
26 /// The Dart VM version string. | 30 /// The Dart VM version string. |
(...skipping 14 matching lines...) Expand all Loading... |
41 int get maxRSS; | 45 int get maxRSS; |
42 | 46 |
43 /// The time that the VM started in milliseconds since the epoch. | 47 /// The time that the VM started in milliseconds since the epoch. |
44 /// | 48 /// |
45 /// Suitable to pass to DateTime.fromMillisecondsSinceEpoch. | 49 /// Suitable to pass to DateTime.fromMillisecondsSinceEpoch. |
46 DateTime get startTime; | 50 DateTime get startTime; |
47 | 51 |
48 // A list of isolates running in the VM. | 52 // A list of isolates running in the VM. |
49 Iterable<IsolateRef> get isolates; | 53 Iterable<IsolateRef> get isolates; |
50 } | 54 } |
OLD | NEW |