| OLD | NEW |
| 1 # Dart VM Service Protocol 3.0 | 1 # Dart VM Service Protocol 3.0 |
| 2 | 2 |
| 3 > Please post feedback to the [observatory-discuss group][discuss-list] | 3 > Please post feedback to the [observatory-discuss group][discuss-list] |
| 4 | 4 |
| 5 This document describes of _version 3.0_ of the Dart VM Service Protocol. This | 5 This document describes of _version 3.0_ of the Dart VM Service Protocol. This |
| 6 protocol is used to communicate with a running Dart Virtual Machine. | 6 protocol is used to communicate with a running Dart Virtual Machine. |
| 7 | 7 |
| 8 To use the Service Protocol, start the VM with the *--observe* flag. | 8 To use the Service Protocol, start the VM with the *--observe* flag. |
| 9 The VM will start a webserver which services protocol requests via WebSocket. | 9 The VM will start a webserver which services protocol requests via WebSocket. |
| 10 It is possible to make HTTP (non-WebSocket) requests, | 10 It is possible to make HTTP (non-WebSocket) requests, |
| (...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 // The CPU we are generating code for. | 2122 // The CPU we are generating code for. |
| 2123 string targetCPU; | 2123 string targetCPU; |
| 2124 | 2124 |
| 2125 // The CPU we are actually running on. | 2125 // The CPU we are actually running on. |
| 2126 string hostCPU; | 2126 string hostCPU; |
| 2127 | 2127 |
| 2128 // The Dart VM version string. | 2128 // The Dart VM version string. |
| 2129 string version; | 2129 string version; |
| 2130 | 2130 |
| 2131 // The process id for the VM. | 2131 // The process id for the VM. |
| 2132 string pid; | 2132 int pid; |
| 2133 | 2133 |
| 2134 // The time that the VM started in milliseconds since the epoch. | 2134 // The time that the VM started in milliseconds since the epoch. |
| 2135 // | 2135 // |
| 2136 // Suitable to pass to DateTime.fromMillisecondsSinceEpoch. | 2136 // Suitable to pass to DateTime.fromMillisecondsSinceEpoch. |
| 2137 int startTime; | 2137 int startTime; |
| 2138 | 2138 |
| 2139 // A list of isolates running in the VM. | 2139 // A list of isolates running in the VM. |
| 2140 @Isolate[] isolates; | 2140 @Isolate[] isolates; |
| 2141 } | 2141 } |
| 2142 ``` | 2142 ``` |
| 2143 | 2143 |
| 2144 ## Revision History | 2144 ## Revision History |
| 2145 | 2145 |
| 2146 version | comments | 2146 version | comments |
| 2147 ------- | -------- | 2147 ------- | -------- |
| 2148 1.0 | initial revision | 2148 1.0 | initial revision |
| 2149 2.0 | Describe protocol version 2.0. | 2149 2.0 | Describe protocol version 2.0. |
| 2150 3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sen
tinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.
entry. | 2150 3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sen
tinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.
entry. The type of VM.pid was changed from string to int. |
| 2151 | 2151 |
| 2152 | 2152 |
| 2153 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss | 2153 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss |
| OLD | NEW |