| OLD | NEW |
| 1 // <h2>Connecting to the VM Service</h2> | 1 // <h2>Connecting to the VM Service</h2> |
| 2 // | 2 // |
| 3 // TODO(turnidge): Describe how to connect, etc. | 3 // TODO(turnidge): Describe how to connect, etc. |
| 4 // | 4 // |
| 5 // <h2>Types</h2> | 5 // <h2>Types</h2> |
| 6 // | 6 // |
| 7 // Every non-error response returned by the VM Service has the | 7 // Every non-error response returned by the VM Service has the |
| 8 // <code>type</code> property. This allows the client distinguish | 8 // <code>type</code> property. This allows the client distinguish |
| 9 // between different kinds of responses. | 9 // between different kinds of responses. |
| 10 // | 10 // |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // Returns a simple tag-based profile for an isolate. | 145 // Returns a simple tag-based profile for an isolate. |
| 146 getTagProfile(isolateId string) TagProfile | 146 getTagProfile(isolateId string) TagProfile |
| 147 | 147 |
| 148 // Returns an allocation profile for an isolate. | 148 // Returns an allocation profile for an isolate. |
| 149 // | 149 // |
| 150 // <code>reset</code> is optional and indicates whether allocation | 150 // <code>reset</code> is optional and indicates whether allocation |
| 151 // accumulators should be reset. | 151 // accumulators should be reset. |
| 152 // | 152 // |
| 153 // <code>gc</code> is optional and indicates whether a full | 153 // <code>gc</code> is optional and indicates whether a full |
| 154 getAllocationProfile(isolateId string, | 154 _getAllocationProfile(isolateId string, |
| 155 reset bool, | 155 reset bool, |
| 156 gc GCOption) AllocationProfile | 156 gc GCOption) AllocationProfile |
| 157 | 157 |
| 158 // Returns the heap map for an isolate. | 158 // Returns the heap map for an isolate. |
| 159 getHeapMap(isolateId string) HeapMap | 159 getHeapMap(isolateId string) HeapMap |
| 160 | 160 |
| 161 // Returns how many bytes are retained by some target Class or Instance. | 161 // Returns how many bytes are retained by some target Class or Instance. |
| 162 getRetainedSize(isolateId string, targetId string) InstanceRef | 162 _getRetainedSize(isolateId string, targetId string) InstanceRef |
| 163 | 163 |
| 164 // Returns a path demonstrating why an object is retained in memory. | 164 // Returns a path demonstrating why an object is retained in memory. |
| 165 // | 165 // |
| 166 // TODO(turnidge): Make limit an int instead of a string. | 166 // TODO(turnidge): Make limit an int instead of a string. |
| 167 getRetainingPath(isolateId string, | 167 _getRetainingPath(isolateId string, |
| 168 targetId string, | 168 targetId string, |
| 169 limit int) RetainingPath | 169 limit int) RetainingPath |
| 170 | 170 |
| 171 // Returns a collection of inbound references to some object. | 171 // Returns a collection of inbound references to some object. |
| 172 // | 172 // |
| 173 // TODO(turnidge): Make limit an int instead of a string. | 173 // TODO(turnidge): Make limit an int instead of a string. |
| 174 getInboundReferences(isolateId string, | 174 _getInboundReferences(isolateId string, |
| 175 targetId string, | 175 targetId string, |
| 176 limit int) InboundReferences | 176 limit int) InboundReferences |
| 177 |
| 178 _getInstances(isolateId string, |
| 179 classId string, |
| 180 limit int) InstanceSet |
| 177 | 181 |
| 178 getClassList(isolateId string) ClassList | 182 getClassList(isolateId string) ClassList |
| 179 | 183 |
| 180 // When <code>onlyWithInstantiations</code> is true, the list only includes | 184 // When <code>onlyWithInstantiations</code> is true, the list only includes |
| 181 // type arguments with instantiations. Otherwise, all type arguments are | 185 // type arguments with instantiations. Otherwise, all type arguments are |
| 182 // returned. | 186 // returned. |
| 183 getTypeArgumentsList(isolateId string, | 187 getTypeArgumentsList(isolateId string, |
| 184 onlyWithInstantiations bool) TypeArgumentsList | 188 onlyWithInstantiations bool) TypeArgumentsList |
| 185 | 189 |
| 186 // Gets a list of isolate metrics. | 190 // Gets a list of isolate metrics. |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 | 1049 |
| 1046 | 1050 |
| 1047 // TODO(koda): slot can actually be a string, and integer or a | 1051 // TODO(koda): slot can actually be a string, and integer or a |
| 1048 // FieldRef. Fix this to be consistent with RetainingPathElement. | 1052 // FieldRef. Fix this to be consistent with RetainingPathElement. |
| 1049 struct InboundReference { | 1053 struct InboundReference { |
| 1050 source InstanceRef | 1054 source InstanceRef |
| 1051 slot int | 1055 slot int |
| 1052 } | 1056 } |
| 1053 | 1057 |
| 1054 | 1058 |
| 1059 struct InstanceSet { |
| 1060 placeholder int |
| 1061 } |
| 1062 |
| 1063 |
| 1055 struct ClassList extends Response { | 1064 struct ClassList extends Response { |
| 1056 classes []ClassRef | 1065 classes []ClassRef |
| 1057 } | 1066 } |
| 1058 | 1067 |
| 1059 | 1068 |
| 1060 struct TypeArgumentsList extends Response { | 1069 struct TypeArgumentsList extends Response { |
| 1061 tableSize int | 1070 tableSize int |
| 1062 tableUsed int | 1071 tableUsed int |
| 1063 typeArguments []TypeArgumentsRef | 1072 typeArguments []TypeArgumentsRef |
| 1064 } | 1073 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 | 1129 |
| 1121 | 1130 |
| 1122 struct _EchoResponse extends Response { | 1131 struct _EchoResponse extends Response { |
| 1123 text string | 1132 text string |
| 1124 } | 1133 } |
| 1125 | 1134 |
| 1126 | 1135 |
| 1127 struct UNDOCUMENTED { | 1136 struct UNDOCUMENTED { |
| 1128 TODO int | 1137 TODO int |
| 1129 } | 1138 } |
| OLD | NEW |