| OLD | NEW |
| 1 # Dart VM Service Protocol | 1 # Dart VM Service Protocol |
| 2 | 2 |
| 3 NOTE: The service api is still changing rapidly. If you use the | 3 NOTE: The service api is still changing rapidly. If you use the |
| 4 service api, expect to encounter non-compatible changes. | 4 service api, expect to encounter non-compatible changes. |
| 5 | 5 |
| 6 Description | 6 Description |
| 7 How to start | 7 How to start |
| 8 JSON | 8 JSON |
| 9 Websocket | 9 Websocket |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | breakpointNumber | int | | 114 | breakpointNumber | int | |
| 115 | enabled | bool | | 115 | enabled | bool | |
| 116 | resolved | bool | | 116 | resolved | bool | |
| 117 | location | [Location](#Location) | | 117 | location | [Location](#Location) | |
| 118 | 118 |
| 119 ### <a name="atClass"></a>@Class | 119 ### <a name="atClass"></a>@Class |
| 120 | keys | values | comments | 120 | keys | values | comments |
| 121 | --- | --- | --- | 121 | --- | --- | --- |
| 122 | type | "@Class" | | 122 | type | "@Class" | |
| 123 | id | String | | 123 | id | String | |
| 124 | user_name | String | | |
| 125 | name | String | | 124 | name | String | |
| 125 | vmName? | String | |
| 126 | 126 |
| 127 ### <a name="Class"></a>Class | 127 ### <a name="Class"></a>Class |
| 128 | keys | values | comments | 128 | keys | values | comments |
| 129 | --- | --- | --- | 129 | --- | --- | --- |
| 130 | type | "@Class" | | 130 | type | "@Class" | |
| 131 | id | String | | 131 | id | String | |
| 132 | user_name | String | | |
| 133 | name | String | | 132 | name | String | |
| 133 | vmName? | String | |
| 134 | error? | [Error](#Error) | Error encountered during class finalization | 134 | error? | [Error](#Error) | Error encountered during class finalization |
| 135 | implemented | bool | | 135 | implemented | bool | |
| 136 | abstract | bool | | 136 | abstract | bool | |
| 137 | patch | bool | | 137 | patch | bool | |
| 138 | finalized | bool | | 138 | finalized | bool | |
| 139 | const | bool | | 139 | const | bool | |
| 140 | super? | [@Class](#atClass) | Super class | 140 | super? | [@Class](#atClass) | Super class |
| 141 | library | [@Library](#atLibrary) | Owning library | 141 | library | [@Library](#atLibrary) | Owning library |
| 142 | script? | [@Script](#atScript) | Script containing class source | 142 | script? | [@Script](#atScript) | Script containing class source |
| 143 | tokenPos? | int | starting token position of class source in script | 143 | tokenPos? | int | starting token position of class source in script |
| (...skipping 26 matching lines...) Expand all Loading... |
| 170 | 4 | int | Instances allocated since last GC | | 170 | 4 | int | Instances allocated since last GC | |
| 171 | 5 | int | Bytes allocated since last GC | | 171 | 5 | int | Bytes allocated since last GC | |
| 172 | 6 | int | Instances allocated since last accumulator reset | | 172 | 6 | int | Instances allocated since last accumulator reset | |
| 173 | 7 | int | Bytes allocated since last accumulator reset | | 173 | 7 | int | Bytes allocated since last accumulator reset | |
| 174 | 174 |
| 175 ### <a name="atCode"></a>@Code | 175 ### <a name="atCode"></a>@Code |
| 176 | keys | values | comments | 176 | keys | values | comments |
| 177 | --- | --- | --- | 177 | --- | --- | --- |
| 178 | type | "@Code" | | 178 | type | "@Code" | |
| 179 | id | String | | 179 | id | String | |
| 180 | user_name | String | | |
| 181 | name | String | | 180 | name | String | |
| 181 | vmName? | String | |
| 182 | start | String | starting address of code | 182 | start | String | starting address of code |
| 183 | end | String | ending address of code | 183 | end | String | ending address of code |
| 184 | isOptimized | bool | | 184 | isOptimized | bool | |
| 185 | isAlive | bool | | 185 | isAlive | bool | |
| 186 | kind | String | 186 | kind | String |
| 187 | function | [@Function](#atFunction) | | 187 | function | [@Function](#atFunction) | |
| 188 | 188 |
| 189 ### <a name="Code"></a>Code | 189 ### <a name="Code"></a>Code |
| 190 | keys | values | comments | 190 | keys | values | comments |
| 191 | --- | --- | --- | 191 | --- | --- | --- |
| 192 | type | "@Code" | | 192 | type | "@Code" | |
| 193 | id | String | | 193 | id | String | |
| 194 | user_name | String | | |
| 195 | name | String | | 194 | name | String | |
| 195 | vmName? | String | |
| 196 | start | String | starting address of code | 196 | start | String | starting address of code |
| 197 | end | String | ending address of code | 197 | end | String | ending address of code |
| 198 | isOptimized | bool | | 198 | isOptimized | bool | |
| 199 | isAlive | bool | | 199 | isAlive | bool | |
| 200 | kind | String | 200 | kind | String |
| 201 | function | [@Function](#atFunction) | | 201 | function | [@Function](#atFunction) | |
| 202 | object_pool | List of [@Object](Object) | | 202 | object_pool | List of [@Object](Object) | |
| 203 | disassembly | List of String | See note below on disassembly list format | 203 | disassembly | List of String | See note below on disassembly list format |
| 204 | 204 |
| 205 *Disassembly list format* | 205 *Disassembly list format* |
| (...skipping 26 matching lines...) Expand all Loading... |
| 232 | type | "Error" | | 232 | type | "Error" | |
| 233 | id | String | always empty | 233 | id | String | always empty |
| 234 | kind | String | | 234 | kind | String | |
| 235 | message | String | | 235 | message | String | |
| 236 | 236 |
| 237 ### <a name="atField"></a>@Field | 237 ### <a name="atField"></a>@Field |
| 238 | keys | values | comments | 238 | keys | values | comments |
| 239 | --- | --- | --- | 239 | --- | --- | --- |
| 240 | type | "@Field" | | 240 | type | "@Field" | |
| 241 | id | String | | 241 | id | String | |
| 242 | user_name | String | | |
| 243 | name | String | | 242 | name | String | |
| 243 | vmName? | String | |
| 244 | value? | Instance | value associated with static field <-- do we want to inclu
de this in a field reference? | 244 | value? | Instance | value associated with static field <-- do we want to inclu
de this in a field reference? |
| 245 | owner | [@Library](#atLibrary),[@Class](#atClass) | Owning library or class <-
- handling of owner is inconsistent with Function | 245 | owner | [@Library](#atLibrary),[@Class](#atClass) | Owning library or class <-
- handling of owner is inconsistent with Function |
| 246 | declared_type | [@AbstractType](#atAbstractType) | | 246 | declared_type | [@AbstractType](#atAbstractType) | |
| 247 | static | bool | | 247 | static | bool | |
| 248 | final | bool | | 248 | final | bool | |
| 249 | const | bool | | 249 | const | bool | |
| 250 | 250 |
| 251 ### <a name="Field"></a>Field | 251 ### <a name="Field"></a>Field |
| 252 | keys | values | comments | 252 | keys | values | comments |
| 253 | --- | --- | --- | 253 | --- | --- | --- |
| 254 | type | "Field" | | 254 | type | "Field" | |
| 255 | id | String | | 255 | id | String | |
| 256 | user_name | String | | |
| 257 | name | String | | 256 | name | String | |
| 257 | vmName? | String | |
| 258 | value? | Instance | value associated with static field | 258 | value? | Instance | value associated with static field |
| 259 | owner | [@Library](#atLibrary) | Owning library <-- handling of owner is incon
sistent with Function | 259 | owner | [@Library](#atLibrary) | Owning library <-- handling of owner is incon
sistent with Function |
| 260 | owner | [@Class](#atClass) | Owning class <-- handling of owner is inconsisten
t with Function | 260 | owner | [@Class](#atClass) | Owning class <-- handling of owner is inconsisten
t with Function |
| 261 | declared_type | [@AbstractType](#atAbstractType) | | 261 | declared_type | [@AbstractType](#atAbstractType) | |
| 262 | static | bool | | 262 | static | bool | |
| 263 | final | bool | | 263 | final | bool | |
| 264 | const | bool | | 264 | const | bool | |
| 265 | guard_nullable | bool | can this field hold a null? | 265 | guard_nullable | bool | can this field hold a null? |
| 266 | guard_class | String OR [@Class](#atClass) | "unknown", "dynamic", or a class | 266 | guard_class | String OR [@Class](#atClass) | "unknown", "dynamic", or a class |
| 267 | guard_length | String OR int | "unknown", "variable", or length of array | 267 | guard_length | String OR int | "unknown", "variable", or length of array |
| (...skipping 17 matching lines...) Expand all Loading... |
| 285 | keys | values | comments | 285 | keys | values | comments |
| 286 | --- | --- | --- | 286 | --- | --- | --- |
| 287 | name | String | | 287 | name | String | |
| 288 | value | [@Instance](#atInstance) | | 288 | value | [@Instance](#atInstance) | |
| 289 | 289 |
| 290 ### <a name="atFunction"></a>@Function | 290 ### <a name="atFunction"></a>@Function |
| 291 | keys | values | comments | 291 | keys | values | comments |
| 292 | --- | --- | --- | 292 | --- | --- | --- |
| 293 | type | "@Function" | | 293 | type | "@Function" | |
| 294 | id | String | | 294 | id | String | |
| 295 | user_name | String | | |
| 296 | name | String | | 295 | name | String | |
| 296 | vmName? | String | |
| 297 | owningLibrary? | [@Library](#atLibrary) | Set for non-top level functions | 297 | owningLibrary? | [@Library](#atLibrary) | Set for non-top level functions |
| 298 | owningClass? | [@Class](#atClass) | Set for non-top level functions | 298 | owningClass? | [@Class](#atClass) | Set for non-top level functions |
| 299 | parent? | [@Function](#atFunction) | Parent function | 299 | parent? | [@Function](#atFunction) | Parent function |
| 300 | kind | String | | 300 | kind | String | |
| 301 | 301 |
| 302 ### <a name="Function"></a>Function | 302 ### <a name="Function"></a>Function |
| 303 | keys | values | comments | 303 | keys | values | comments |
| 304 | --- | --- | --- | 304 | --- | --- | --- |
| 305 | type | "@Function" | | 305 | type | "@Function" | |
| 306 | id | String | | 306 | id | String | |
| 307 | user_name | String | | |
| 308 | name | String | | 307 | name | String | |
| 308 | vmName? | String | |
| 309 | owningLibrary | [@Library](#atLibrary) | Set for non-top level functions | 309 | owningLibrary | [@Library](#atLibrary) | Set for non-top level functions |
| 310 | owningClass | [@Class](#atClass) | Set for non-top level functions | 310 | owningClass | [@Class](#atClass) | Set for non-top level functions |
| 311 | parent? | [@Function](#atFunction) | Parent function | 311 | parent? | [@Function](#atFunction) | Parent function |
| 312 | kind | String | | 312 | kind | String | |
| 313 | is_static | bool | | 313 | static | bool | |
| 314 | is_const | bool | | 314 | const | bool | |
| 315 | is_optimizable | bool | | 315 | optimizable | bool | |
| 316 | is_inlinable | bool | | 316 | inlinable | bool | |
| 317 | usage_counter | int | | 317 | usage_counter | int | |
| 318 | optimized_call_site_count | int | | 318 | optimized_call_site_count | int | |
| 319 | deoptimizations | int | | 319 | deoptimizations | int | |
| 320 | script? | [@Script](#atScript) | Script containing function source | 320 | script? | [@Script](#atScript) | Script containing function source |
| 321 | tokenPos? | int | starting token position of function source in script | 321 | tokenPos? | int | starting token position of function source in script |
| 322 | endTokenPos? | int | end token position of function source in script | 322 | endTokenPos? | int | end token position of function source in script |
| 323 | unoptimized_code | [@Code](#atCode) | | 323 | unoptimized_code | [@Code](#atCode) | |
| 324 | code | [@Code](#atCode) | Current code | 324 | code | [@Code](#atCode) | Current code |
| 325 | 325 |
| 326 ### <a name="atIsolate"></a>@Isolate | 326 ### <a name="atIsolate"></a>@Isolate |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | targetCPU | String | | 438 | targetCPU | String | |
| 439 | hostCPU | String | | 439 | hostCPU | String | |
| 440 | date | String | kill? | | 440 | date | String | kill? | |
| 441 | version | String | | 441 | version | String | |
| 442 | pid | int | | 442 | pid | int | |
| 443 | assertsEnabled | bool | TODO: move to features? | | 443 | assertsEnabled | bool | TODO: move to features? | |
| 444 | typeChecksEnabled | bool | TODO: move to features? | | 444 | typeChecksEnabled | bool | TODO: move to features? | |
| 445 | uptime | double | seconds since vm started | | 445 | uptime | double | seconds since vm started | |
| 446 | "isolates" | List of [@Isolate](#atIsolate) | | 446 | "isolates" | List of [@Isolate](#atIsolate) | |
| 447 | 447 |
| OLD | NEW |