On Sun, Nov 20, 2016 at 2:43 AM, Jane Chen <[email protected]> wrote: > Embedding v8 5.3. > > I have a JavaScript function prof.eval which is implemented through a > callback function that creates a fresh v8 context, starts CPU profiling, > evaluates the inner script, stops profiling and returns profiling result. > The profiling result contains frames calling prof.eval in the stack. Is > there anyway to exclude the frames for the outer context? > > Thanks!
I think the answer is 'no'; the profiler ignores context boundaries, as far as I am aware, even if they have different security tokens. A workaround is to do all processing in C++, that way it won't be visible to the CPU profiler. -- -- 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.
