You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/vm/service/service.md
+35-3Lines changed: 35 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Dart VM Service Protocol 3.19
1
+
# Dart VM Service Protocol 3.20
2
2
3
3
> Please post feedback to the [observatory-discuss group][discuss-list]
4
4
5
-
This document describes of _version 3.19_ of the Dart VM Service Protocol. This
5
+
This document describes of _version 3.20_ of the Dart VM Service Protocol. This
6
6
protocol is used to communicate with a running Dart Virtual Machine.
7
7
8
8
To use the Service Protocol, start the VM with the *--observe* flag.
@@ -32,6 +32,7 @@ The Service Protocol uses [JSON-RPC 2.0][].
32
32
-[evaluateInFrame](#evaluateinframe)
33
33
-[getAllocationProfile](#getallocationprofile)
34
34
-[getFlagList](#getflaglist)
35
+
-[getInstances](#getinstances)
35
36
-[getIsolate](#getisolate)
36
37
-[getMemoryUsage](#getmemoryusage)
37
38
-[getScripts](#getscripts)
@@ -79,6 +80,7 @@ The Service Protocol uses [JSON-RPC 2.0][].
79
80
-[Frame](#frame)
80
81
-[Function](#function)
81
82
-[Instance](#instance)
83
+
-[InstanceSet](#instanceset)
82
84
-[Isolate](#isolate)
83
85
-[Library](#library)
84
86
-[LibraryDependency](#librarydependency)
@@ -638,6 +640,21 @@ VM along with their current values.
638
640
639
641
See [FlagList](#flaglist).
640
642
643
+
### getInstances
644
+
645
+
```
646
+
InstanceSet getInstances(string objectId,
647
+
int limit)
648
+
```
649
+
650
+
The _getInstances_ RPC is used to retrieve a set of instances which are of a specific type.
651
+
652
+
_objectId_ is the ID of the `Class` to retrieve instances for. _objectId_ must be the ID of a `Class`, otherwise an error is returned.
653
+
654
+
_limit_ is the maximum number of instances to be returned.
655
+
656
+
See [InstanceSet](#instanceset).
657
+
641
658
### getIsolate
642
659
643
660
```
@@ -2293,6 +2310,20 @@ class Isolate extends Response {
2293
2310
2294
2311
An _Isolate_ object provides information about one isolate in the VM.
2295
2312
2313
+
### InstanceSet
2314
+
2315
+
```
2316
+
class InstanceSet extends Response {
2317
+
// The number of instances of the requested type currently allocated.
2318
+
int totalCount;
2319
+
2320
+
// An array of instances of the requested type.
2321
+
@Instance[] instances;
2322
+
}
2323
+
```
2324
+
2325
+
See [getInstances](#getinstances).
2326
+
2296
2327
### Library
2297
2328
2298
2329
```
@@ -3002,7 +3033,7 @@ class VM extends Response {
3002
3033
3003
3034
version | comments
3004
3035
------- | --------
3005
-
1.0 | initial revision
3036
+
1.0 | Initial revision
3006
3037
2.0 | Describe protocol version 2.0.
3007
3038
3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sentinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.entry. The type of VM.pid was changed from string to int. Added VMUpdate events. Add offset and count parameters to getObject() and offset and count fields to Instance. Added ServiceExtensionAdded event.
3008
3039
3.1 | Add the getSourceReport RPC. The getObject RPC now accepts offset and count for string objects. String objects now contain length, offset, and count properties.
@@ -3024,5 +3055,6 @@ version | comments
3024
3055
3.17 | Add 'Logging' event kind and the LogRecord class.
3025
3056
3.18 | Add 'getAllocationProfile' RPC and 'AllocationProfile' and 'ClassHeapStats' objects.
3026
3057
3.19 | Add 'clearVMTimeline', 'getVMTimeline', 'getVMTimelineFlags', 'setVMTimelineFlags', 'Timeline', and 'TimelineFlags'.
3058
+
3.20 | Add 'getInstances' RPC and 'InstanceSet' object.
Copy file name to clipboardExpand all lines: runtime/vm/service/service_dev.md
+35-3Lines changed: 35 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Dart VM Service Protocol 3.20-dev
1
+
# Dart VM Service Protocol 3.21-dev
2
2
3
3
> Please post feedback to the [observatory-discuss group][discuss-list]
4
4
5
-
This document describes of _version 3.20-dev_ of the Dart VM Service Protocol. This
5
+
This document describes of _version 3.21-dev_ of the Dart VM Service Protocol. This
6
6
protocol is used to communicate with a running Dart Virtual Machine.
7
7
8
8
To use the Service Protocol, start the VM with the *--observe* flag.
@@ -32,6 +32,7 @@ The Service Protocol uses [JSON-RPC 2.0][].
32
32
-[evaluateInFrame](#evaluateinframe)
33
33
-[getAllocationProfile](#getallocationprofile)
34
34
-[getFlagList](#getflaglist)
35
+
-[getInstances](#getinstances)
35
36
-[getIsolate](#getisolate)
36
37
-[getMemoryUsage](#getmemoryusage)
37
38
-[getScripts](#getscripts)
@@ -79,6 +80,7 @@ The Service Protocol uses [JSON-RPC 2.0][].
79
80
-[Frame](#frame)
80
81
-[Function](#function)
81
82
-[Instance](#instance)
83
+
-[InstanceSet](#instanceset)
82
84
-[Isolate](#isolate)
83
85
-[Library](#library)
84
86
-[LibraryDependency](#librarydependency)
@@ -638,6 +640,21 @@ VM along with their current values.
638
640
639
641
See [FlagList](#flaglist).
640
642
643
+
### getInstances
644
+
645
+
```
646
+
InstanceSet getInstances(string objectId,
647
+
int limit)
648
+
```
649
+
650
+
The _getInstances_ RPC is used to retrieve a set of instances which are of a specific type.
651
+
652
+
_objectId_ is the ID of the `Class` to retrieve instances for. _objectId_ must be the ID of a `Class`, otherwise an error is returned.
653
+
654
+
_limit_ is the maximum number of instances to be returned.
655
+
656
+
See [InstanceSet](#instanceset).
657
+
641
658
### getIsolate
642
659
643
660
```
@@ -2293,6 +2310,20 @@ class Isolate extends Response {
2293
2310
2294
2311
An _Isolate_ object provides information about one isolate in the VM.
2295
2312
2313
+
### InstanceSet
2314
+
2315
+
```
2316
+
class InstanceSet extends Response {
2317
+
// The number of instances of the requested type currently allocated.
2318
+
int totalCount;
2319
+
2320
+
// An array of instances of the requested type.
2321
+
@Instance[] instances;
2322
+
}
2323
+
```
2324
+
2325
+
See [getInstances](#getinstances).
2326
+
2296
2327
### Library
2297
2328
2298
2329
```
@@ -3002,7 +3033,7 @@ class VM extends Response {
3002
3033
3003
3034
version | comments
3004
3035
------- | --------
3005
-
1.0 | initial revision
3036
+
1.0 | Initial revision
3006
3037
2.0 | Describe protocol version 2.0.
3007
3038
3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sentinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.entry. The type of VM.pid was changed from string to int. Added VMUpdate events. Add offset and count parameters to getObject() and offset and count fields to Instance. Added ServiceExtensionAdded event.
3008
3039
3.1 | Add the getSourceReport RPC. The getObject RPC now accepts offset and count for string objects. String objects now contain length, offset, and count properties.
@@ -3024,5 +3055,6 @@ version | comments
3024
3055
3.17 | Add 'Logging' event kind and the LogRecord class.
3025
3056
3.18 | Add 'getAllocationProfile' RPC and 'AllocationProfile' and 'ClassHeapStats' objects.
3026
3057
3.19 | Add 'clearVMTimeline', 'getVMTimeline', 'getVMTimelineFlags', 'setVMTimelineFlags', 'Timeline', and 'TimelineFlags'.
3058
+
3.20 | Add 'getInstances' RPC and 'InstanceSet' object.
0 commit comments