On Thu, Apr 30, 2015 at 6:18 AM, Lance Ju <[email protected]> wrote: > I'm new to v8, now I'm planning to write a gc monitor of v8, that is, when > v8 triggered the gc, I know it happens and I can output the memory usage. Is > there a way to achieve this? I didn't see some programming guides or manuals > both on Google and the v8 official site.
I think you're looking for the v8::Isolate::AddGCPrologueCallback() and v8::Isolate::AddGCEpilogueCallback() methods. You can find their definitions in include/v8.h. Aside: you should post questions to v8-users next time. v8-dev is more of an archive for bug tracker and code review traffic, human posts are prone to get lost in the noise. -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" 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.
