I believe your goal is to write a version of the cpuprofile file that is compatible with the latest Chrome. In that case, you should just match the current Chromium implementation:
https://chromium.googlesource.com/chromium/src.git/+/master/third_party/WebKit/Source/core/inspector/v8/V8ProfilerAgentImpl.cpp On Thu, Dec 10, 2015 at 9:31 AM, Jane Chen <[email protected]> wrote: > Great. Thanks again. > > I guess I really should just download the Chromium source code. But > deoptReason is a string, while GetDeoptInfos() returns a vector. Maybe I'm > looking at mismatching v8 versions here? > > On Thursday, December 10, 2015 at 3:53:30 AM UTC-8, Ben Noordhuis wrote: >> >> On Thu, Dec 10, 2015 at 1:08 AM, Jane Chen <[email protected]> wrote: >> > Thanks a lot! It sure helps. >> > >> > I found CpuProfileNode.GetNodeId(). Maybe that's the pre-computed id >> which >> > is the same as what you show here? >> >> Yes, you're right. Now that I look at our code base, we actually use >> GetNodeId(). The std::map approach we used in node.js v0.10 / V8 3.14 >> compatibility code, where that method does not exist. >> > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/v8-users/baUOMwd1fT4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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.
