Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: runtime/vm/service/service.idl

Issue 920113002: Add getCallSiteData to the VM service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 28 matching lines...) Expand all
39 // Evaluate an expression in the context of some target. 39 // Evaluate an expression in the context of some target.
40 eval(isolateId string, targetId string, expression string) InstanceRef 40 eval(isolateId string, targetId string, expression string) InstanceRef
41 41
42 // Returns the current execution stack for an isolate. 42 // Returns the current execution stack for an isolate.
43 getStack(isolateId string) Stack 43 getStack(isolateId string) Stack
44 44
45 // Returns code coverage information for a library, script, class, 45 // Returns code coverage information for a library, script, class,
46 // or function. 46 // or function.
47 getCoverage(isolateId string, targetId string) CodeCoverage 47 getCoverage(isolateId string, targetId string) CodeCoverage
48 48
49 // Returns call site cache information for a function.
50 getCallSiteData(isolateId string, targetId string) _CallSiteData
51
49 // Returns a full cpu profile for an isolate. 52 // Returns a full cpu profile for an isolate.
50 // 53 //
51 // <code>tagSelector</code> is optional with default 'UserVM'. 54 // <code>tagSelector</code> is optional with default 'UserVM'.
52 getCpuProfile(isolateId string, tags TagSelector) CpuProfile 55 getCpuProfile(isolateId string, tags TagSelector) CpuProfile
53 56
54 57
55 // Returns a simple tag-based profile for an isolate. 58 // Returns a simple tag-based profile for an isolate.
56 getTagProfile(isolateId string) TagProfile 59 getTagProfile(isolateId string) TagProfile
57 60
58 // Returns an allocation profile for an isolate. 61 // Returns an allocation profile for an isolate.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // A <code>Stack</code> represents an isolate's execution stack. 269 // A <code>Stack</code> represents an isolate's execution stack.
267 struct Stack extends Response { 270 struct Stack extends Response {
268 frames []Frame 271 frames []Frame
269 } 272 }
270 273
271 274
272 struct CodeCoverage extends Response { 275 struct CodeCoverage extends Response {
273 placeholder int 276 placeholder int
274 } 277 }
275 278
279
280 struct _CacheEntry {
281 receiverClass ClassRef
282 count int
283 }
284
285
286 struct _CallSite {
287 name string
288 line int
289 column int
290 cacheEntries []_CacheEntry
291 }
292
293
294 struct _CallSiteData extends Response {
295 function FunctionRef
296 callSites []_CallSite
297 }
298
276 // A <code>TagProfile</code> is a limited profile encoded as parallel 299 // A <code>TagProfile</code> is a limited profile encoded as parallel
277 // arrays of tag names and tag values. 300 // arrays of tag names and tag values.
278 struct TagProfile extends Response { 301 struct TagProfile extends Response {
279 names []string 302 names []string
280 counters []int 303 counters []int
281 } 304 }
282 305
283 306
284 // A list of <code>Breakpoint</code> 307 // A list of <code>Breakpoint</code>
285 struct BreakpointList extends Response { 308 struct BreakpointList extends Response {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 VMOnly 432 VMOnly
410 None 433 None
411 } 434 }
412 435
413 // A <code>MetricSelector</code> is used to indicate which list of metrics 436 // A <code>MetricSelector</code> is used to indicate which list of metrics
414 // should be retrieved from an isolate. 437 // should be retrieved from an isolate.
415 enum MetricSelector { 438 enum MetricSelector {
416 Dart, 439 Dart,
417 Native, 440 Native,
418 } 441 }
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698