What I mean is that I know how to use "--prof" flag to enable profiling which serializes to a file, but I'd like to use CpuProfiler's Start/Stop API to control profiling.
Thanks for the pointer. We'll check it out. On Wednesday, June 24, 2015 at 7:22:26 AM UTC-7, Ben Noordhuis wrote: > > On Wed, Jun 24, 2015 at 12:36 PM, Jane Chen <jxch...@gmail.com > <javascript:>> 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 v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.