| 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 | 6 getVM() VM |
| 7 | 7 |
| 8 getFlagList() FlagList | 8 getFlagList() FlagList |
| 9 | 9 |
| 10 setFlag(name string, value string) Response | 10 setFlag(name string, value string) Response |
| 11 | 11 |
| 12 getObject(isolateId string, objectId string) Object | 12 getObject(isolateId string, objectId string) Object |
| 13 | 13 |
| 14 // The response is a subtype of Object or ObjectRef. | 14 // The response is a subtype of Object or ObjectRef. |
| 15 getObjectByAddress(address string, ref bool) Response | 15 getObjectByAddress(address string, ref bool) Response |
| 16 | 16 |
| 17 // Returns the list of breakpoints for an isolate. | |
| 18 getBreakpoints(isolateId string) BreakpointList | |
| 19 | |
| 20 // Adds a breakpoint at the specified line. | 17 // Adds a breakpoint at the specified line. |
| 21 // | 18 // |
| 22 // TODO(turnidge): Make line an int instead of a string. | 19 // TODO(turnidge): Make line an int instead of a string. |
| 23 addBreakpoint(isolateId string, | 20 addBreakpoint(isolateId string, |
| 24 scriptId string, | 21 scriptId string, |
| 25 line string) Breakpoint | 22 line string) Breakpoint |
| 26 | 23 |
| 27 // Adds a breakpoint at the entrypoint of the specified function. | 24 // Adds a breakpoint at the entrypoint of the specified function. |
| 28 addBreakpointAtEntry(isolateId string, | 25 addBreakpointAtEntry(isolateId string, |
| 29 functionId string) Breakpoint | 26 functionId string) Breakpoint |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 167 |
| 171 // An <code>Instance</code> represents a Dart-language object. | 168 // An <code>Instance</code> represents a Dart-language object. |
| 172 struct Instance extends Object { | 169 struct Instance extends Object { |
| 173 placeholder int | 170 placeholder int |
| 174 } | 171 } |
| 175 | 172 |
| 176 | 173 |
| 177 // A <code>Breakpoint</code> describes a debugger breakpoint. | 174 // A <code>Breakpoint</code> describes a debugger breakpoint. |
| 178 struct Breakpoint extends Object { | 175 struct Breakpoint extends Object { |
| 179 breakpointNumber int | 176 breakpointNumber int |
| 180 enabled bool | |
| 181 resolved bool | 177 resolved bool |
| 182 location Location | 178 location Location |
| 183 } | 179 } |
| 184 | 180 |
| 185 | 181 |
| 186 // References to persistent objects in the vm are returned as | 182 // References to persistent objects in the vm are returned as |
| 187 // subclasses of ObjectRef. | 183 // subclasses of ObjectRef. |
| 188 struct ObjectRef extends Response { | 184 struct ObjectRef extends Response { |
| 189 // The object <code>id</code> can be used to refer to a persistent | 185 // The object <code>id</code> can be used to refer to a persistent |
| 190 // object inside the vm or an isolate. | 186 // object inside the vm or an isolate. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 } | 297 } |
| 302 | 298 |
| 303 // A <code>TagProfile</code> is a limited profile encoded as parallel | 299 // A <code>TagProfile</code> is a limited profile encoded as parallel |
| 304 // arrays of tag names and tag values. | 300 // arrays of tag names and tag values. |
| 305 struct TagProfile extends Response { | 301 struct TagProfile extends Response { |
| 306 names []string | 302 names []string |
| 307 counters []int | 303 counters []int |
| 308 } | 304 } |
| 309 | 305 |
| 310 | 306 |
| 311 // A list of <code>Breakpoint</code> | |
| 312 struct BreakpointList extends Response { | |
| 313 breakpoints []Breakpoint | |
| 314 } | |
| 315 | |
| 316 | |
| 317 // An <code>AllocationProfile</code> encodes an allocation profile. | 307 // An <code>AllocationProfile</code> encodes an allocation profile. |
| 318 struct AllocationProfile extends Response { | 308 struct AllocationProfile extends Response { |
| 319 todo int | 309 todo int |
| 320 } | 310 } |
| 321 | 311 |
| 322 | 312 |
| 323 // A <code>CpuProfile</code> encodes a full cpu profile. | 313 // A <code>CpuProfile</code> encodes a full cpu profile. |
| 324 struct CpuProfile extends Response { | 314 struct CpuProfile extends Response { |
| 325 samples int | 315 samples int |
| 326 depth int | 316 depth int |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 VMOnly | 426 VMOnly |
| 437 None | 427 None |
| 438 } | 428 } |
| 439 | 429 |
| 440 // A <code>MetricSelector</code> is used to indicate which list of metrics | 430 // A <code>MetricSelector</code> is used to indicate which list of metrics |
| 441 // should be retrieved from an isolate. | 431 // should be retrieved from an isolate. |
| 442 enum MetricSelector { | 432 enum MetricSelector { |
| 443 Dart, | 433 Dart, |
| 444 Native, | 434 Native, |
| 445 } | 435 } |
| OLD | NEW |