On Wed, Jun 24, 2015 at 12:36 PM, Jane Chen <[email protected]> wrote: > Is there serialization API for v8 CpuProfile? I'd like to generate a file > such as v8.log using "--prof" in my embedding application at the granularity > of a JavaScript request. What's the correct way of doing that? > > My v8 version is 3.24.
I'm not quite sure what you mean by 'granularity of a JavaScript request'. The C++ API does not expose anything that lets you serialize directly to a log file but it's possible to write your own tooling. One of my company's products[0], for example, converts profile data to the .cpuprofile file format that Chrome DevTools understands. (And papers over version differences; output from old V8 versions doesn't map 1-to-1 to what recent Chrome releases want.) [0] https://strongloop.com/node-js/devops-tools/ -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
