| 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 // Returns the list of breakpoints for an isolate. | 6 // Returns the list of breakpoints for an isolate. |
| 7 getBreakpoints(isolateId string) BreakpointList | 7 getBreakpoints(isolateId string) BreakpointList |
| 8 | 8 |
| 9 // Adds a breakpoint at the specified line. | 9 // Adds a breakpoint at the specified line. |
| 10 // | 10 // |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 targetId string, | 74 targetId string, |
| 75 limit int) InboundReferences | 75 limit int) InboundReferences |
| 76 | 76 |
| 77 getClassList(isolateId string) ClassList | 77 getClassList(isolateId string) ClassList |
| 78 | 78 |
| 79 // When <code>onlyWithInstantiations</code> is true, the list only includes | 79 // When <code>onlyWithInstantiations</code> is true, the list only includes |
| 80 // type arguments with instantiations. Otherwise, all type arguments are | 80 // type arguments with instantiations. Otherwise, all type arguments are |
| 81 // returned. | 81 // returned. |
| 82 getTypeArgumentsList(isolateId string, | 82 getTypeArgumentsList(isolateId string, |
| 83 onlyWithInstantiations bool) TypeArgumentsList | 83 onlyWithInstantiations bool) TypeArgumentsList |
| 84 |
| 85 _echo(isolateId string, |
| 86 text string) _EchoResponse |
| 87 |
| 88 _echoVM(text string) _EchoResponse |
| 89 |
| 90 // Triggers a ServiceEvent with EventType '_Echo'. |
| 91 _triggerEchoEvent(isolateId string, |
| 92 text string) _EchoResponse |
| 93 |
| 94 // Response is bad JSON. |
| 95 _respondWithMalformedJson(isolateId string) Response |
| 96 |
| 97 // Response is not an object. |
| 98 _respondWithMalformedObject(isolateId string) Response |
| 84 } | 99 } |
| 85 | 100 |
| 86 | 101 |
| 87 // Every top level response returned by the Service interface extends | 102 // Every top level response returned by the Service interface extends |
| 88 // <code>Response</code>. This allows the client to distinguish | 103 // <code>Response</code>. This allows the client to distinguish |
| 89 // between different kinds of responses by using the <code>type</code> | 104 // between different kinds of responses by using the <code>type</code> |
| 90 // property. | 105 // property. |
| 91 struct Response { | 106 struct Response { |
| 92 // Every response returned by the VM Service has the | 107 // Every response returned by the VM Service has the |
| 93 // <code>type</code> property. This allows the client distinguish | 108 // <code>type</code> property. This allows the client distinguish |
| 94 // between different kinds of responses. | 109 // between different kinds of responses. |
| 95 type string | 110 type string |
| 96 | 111 |
| 97 // Some responses will have the <code>_vmType</code> property. This | 112 // Some responses will have the <code>_vmType</code> property. This |
| 98 // provides the VM-internal type name of an object, and is provided | 113 // provides the VM-internal type name of an object, and is provided |
| 99 // only when this type name differs from the <code>type</code> | 114 // only when this type name differs from the <code>type</code> |
| 100 // property. | 115 // property. |
| 101 _vmType string [optional] | 116 _vmType string [optional] |
| 102 } | 117 } |
| 103 | 118 |
| 104 | 119 |
| 120 struct _EchoResponse extends Response { |
| 121 text string |
| 122 } |
| 123 |
| 124 |
| 105 // Persistent objects in the vm are returned as subclasses of Object. | 125 // Persistent objects in the vm are returned as subclasses of Object. |
| 106 struct Object extends Response { | 126 struct Object extends Response { |
| 107 // The object <code>id</code> can be used to refer to a persistent | 127 // The object <code>id</code> can be used to refer to a persistent |
| 108 // object inside the vm or an isolate. | 128 // object inside the vm or an isolate. |
| 109 id string | 129 id string |
| 110 } | 130 } |
| 111 | 131 |
| 112 | 132 |
| 113 // An <code>Instance</code> represents a Dart-language object. | 133 // An <code>Instance</code> represents a Dart-language object. |
| 114 struct Instance extends Object { | 134 struct Instance extends Object { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // A <code>TagSelector</code> is used to indicate which sets of tags | 349 // A <code>TagSelector</code> is used to indicate which sets of tags |
| 330 // should take precedence in a cpu profile. | 350 // should take precedence in a cpu profile. |
| 331 enum TagSelector { | 351 enum TagSelector { |
| 332 UserVM | 352 UserVM |
| 333 UserOnly | 353 UserOnly |
| 334 VMUser | 354 VMUser |
| 335 VMOnly | 355 VMOnly |
| 336 None | 356 None |
| 337 } | 357 } |
| 338 | 358 |
| OLD | NEW |