It is currently possible to control timeline and CPU profile recording from the console API. Is it possible to do the same for heap snapshots and heap allocations?
Possible API to start discussion:console.snapshot([label])console.allocation([label])console.allocationEnd()allocation/allocationEnd are not great method names but they are consistent with the style of the timeline and profile methods. recordHeapAllocations/stopRecordingHeapAllocations are more explicit but unweildy, and quite incongruous with the console API's terse method names. I am sure there are better names for each of these methods.If this sounds feasible I will raise a feature request on crbug. I would be interested in contributing a patch.
--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/44340c22-5121-458d-ac0e-d9d4aaa11490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jan 12, 2015 at 7:21 PM, Joe Whitfield-Seed <joes...@gmail.com> wrote:It is currently possible to control timeline and CPU profile recording from the console API. Is it possible to do the same for heap snapshots and heap allocations?No. There is no such API at the moment.Possible API to start discussion:console.snapshot([label])console.allocation([label])console.allocationEnd()allocation/allocationEnd are not great method names but they are consistent with the style of the timeline and profile methods. recordHeapAllocations/stopRecordingHeapAllocations are more explicit but unweildy, and quite incongruous with the console API's terse method names. I am sure there are better names for each of these methods.If this sounds feasible I will raise a feature request on crbug. I would be interested in contributing a patch.Please file a feature request on this at crbug.com. I think it may make more sense to reuse existing API like console.timeStamp([label]) for this purposes: force GC on console.timeStamp if allocation tracking is on and add a marker event to the recorded profile so that we could see later it on the heap graph.
--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.