OLD | NEW |
1 // | 1 // |
2 // TODO(turnidge): Finish writing an idl description of the service protocol. | 2 // TODO(turnidge): Finish writing an idl description of the service protocol. |
3 // | 3 // |
4 | 4 |
5 interface Service { | 5 interface Service { |
| 6 getVM() VM |
| 7 |
| 8 getFlagList() FlagList |
| 9 |
| 10 setFlag(name string, value string) Response |
| 11 |
| 12 getObject(isolateId string, objectId string) Object |
| 13 |
| 14 // The response is a subtype of Object or ObjectRef. |
| 15 getObjectByAddress(address string, ref bool) Response |
| 16 |
6 // Returns the list of breakpoints for an isolate. | 17 // Returns the list of breakpoints for an isolate. |
7 getBreakpoints(isolateId string) BreakpointList | 18 getBreakpoints(isolateId string) BreakpointList |
8 | 19 |
9 // Adds a breakpoint at the specified line. | 20 // Adds a breakpoint at the specified line. |
10 // | 21 // |
11 // TODO(turnidge): Make line an int instead of a string. | 22 // TODO(turnidge): Make line an int instead of a string. |
12 addBreakpoint(isolateId string, | 23 addBreakpoint(isolateId string, |
13 scriptId string, | 24 scriptId string, |
14 line string) Breakpoint | 25 line string) Breakpoint |
15 | 26 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 type string | 131 type string |
121 | 132 |
122 // Some responses will have the <code>_vmType</code> property. This | 133 // Some responses will have the <code>_vmType</code> property. This |
123 // provides the VM-internal type name of an object, and is provided | 134 // provides the VM-internal type name of an object, and is provided |
124 // only when this type name differs from the <code>type</code> | 135 // only when this type name differs from the <code>type</code> |
125 // property. | 136 // property. |
126 _vmType string [optional] | 137 _vmType string [optional] |
127 } | 138 } |
128 | 139 |
129 | 140 |
| 141 struct VM extends Response { |
| 142 placeholder int |
| 143 } |
| 144 |
| 145 |
| 146 struct FlagList extends Response { |
| 147 placeholder int |
| 148 } |
| 149 |
| 150 |
130 struct _EchoResponse extends Response { | 151 struct _EchoResponse extends Response { |
131 text string | 152 text string |
132 } | 153 } |
133 | 154 |
134 | 155 |
135 // Persistent objects in the vm are returned as subclasses of Object. | 156 // Persistent objects in the vm are returned as subclasses of Object. |
136 struct Object extends Response { | 157 struct Object extends Response { |
137 // The object <code>id</code> can be used to refer to a persistent | 158 // The object <code>id</code> can be used to refer to a persistent |
138 // object inside the vm or an isolate. | 159 // object inside the vm or an isolate. |
139 id string | 160 id string |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 VMOnly | 409 VMOnly |
389 None | 410 None |
390 } | 411 } |
391 | 412 |
392 // A <code>MetricSelector</code> is used to indicate which list of metrics | 413 // A <code>MetricSelector</code> is used to indicate which list of metrics |
393 // should be retrieved from an isolate. | 414 // should be retrieved from an isolate. |
394 enum MetricSelector { | 415 enum MetricSelector { |
395 Dart, | 416 Dart, |
396 Native, | 417 Native, |
397 } | 418 } |
OLD | NEW |