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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 84 |
| 85 getIsolateMetricList(isolateId string, |
| 86 type MetricSelector) MetricList |
| 87 |
| 88 getIsolateMetric(isolateId string, |
| 89 metricId string) Metric |
| 90 |
| 91 getVMMetricList() MetricList |
| 92 |
| 93 getVMMetric(metricId string) Metric |
| 94 |
85 _echo(isolateId string, | 95 _echo(isolateId string, |
86 text string) _EchoResponse | 96 text string) _EchoResponse |
87 | 97 |
88 _echoVM(text string) _EchoResponse | 98 _echoVM(text string) _EchoResponse |
89 | 99 |
90 // Triggers a ServiceEvent with EventType '_Echo'. | 100 // Triggers a ServiceEvent with EventType '_Echo'. |
91 _triggerEchoEvent(isolateId string, | 101 _triggerEchoEvent(isolateId string, |
92 text string) _EchoResponse | 102 text string) _EchoResponse |
93 | 103 |
94 // Response is bad JSON. | 104 // Response is bad JSON. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 323 |
314 | 324 |
315 // TODO(koda): slot can actually be a string, and integer or a | 325 // TODO(koda): slot can actually be a string, and integer or a |
316 // FieldRef. Fix this to be consistent with RetainingPathElement. | 326 // FieldRef. Fix this to be consistent with RetainingPathElement. |
317 struct InboundReference { | 327 struct InboundReference { |
318 source InstanceRef | 328 source InstanceRef |
319 slot int | 329 slot int |
320 } | 330 } |
321 | 331 |
322 | 332 |
323 struct ClassList { | 333 struct ClassList extends Response { |
324 classes []ClassRef | 334 classes []ClassRef |
325 } | 335 } |
326 | 336 |
327 | 337 |
328 struct TypeArgumentsList { | 338 struct TypeArgumentsList extends Response { |
329 tableSize int | 339 tableSize int |
330 tableUsed int | 340 tableUsed int |
331 typeArguments []TypeArgumentsRef | 341 typeArguments []TypeArgumentsRef |
332 } | 342 } |
333 | 343 |
334 | 344 |
| 345 struct MetricList extends Response { |
| 346 metrics []Metric |
| 347 } |
| 348 |
| 349 |
| 350 struct Metric extends Response { |
| 351 name string |
| 352 description string |
| 353 } |
| 354 |
| 355 |
| 356 struct Gauge extends Metric { |
| 357 value double |
| 358 min double |
| 359 max double |
| 360 } |
| 361 |
| 362 |
| 363 struct Counter extends Metric { |
| 364 value double |
| 365 } |
| 366 |
| 367 |
335 // A <code>GCOption</code> is used to indicate which form of garbage | 368 // A <code>GCOption</code> is used to indicate which form of garbage |
336 // collection is requested. | 369 // collection is requested. |
337 enum GCOption { | 370 enum GCOption { |
338 full | 371 full |
339 } | 372 } |
340 | 373 |
341 // A <code>StepOption</code> is used to indicate which form of | 374 // A <code>StepOption</code> is used to indicate which form of |
342 // single-stepping is requested. | 375 // single-stepping is requested. |
343 enum StepOption { | 376 enum StepOption { |
344 into | 377 into |
345 over | 378 over |
346 out | 379 out |
347 } | 380 } |
348 | 381 |
349 // A <code>TagSelector</code> is used to indicate which sets of tags | 382 // A <code>TagSelector</code> is used to indicate which sets of tags |
350 // should take precedence in a cpu profile. | 383 // should take precedence in a cpu profile. |
351 enum TagSelector { | 384 enum TagSelector { |
352 UserVM | 385 UserVM |
353 UserOnly | 386 UserOnly |
354 VMUser | 387 VMUser |
355 VMOnly | 388 VMOnly |
356 None | 389 None |
357 } | 390 } |
358 | 391 |
| 392 // A <code>MetricSelector</code> is used to indicate which list of metrics |
| 393 // should be retrieved from an isolate. |
| 394 enum MetricSelector { |
| 395 Dart, |
| 396 Native, |
| 397 } |
OLD | NEW |