On Wed, Jul 30, 2014 at 10:22 AM, Liu Xiao <[email protected]> wrote: > But how can I use the "C++ API", you mean the API included the file > “heap-profiler.h” ?
Apologies, I mean class HeapProfiler from include/v8-profiler.h. In newer versions of V8, you get a HeapProfiler instance with Isolate::GetHeapProfiler(). In older versions, it's an all-static class. > And I have konwn that we can get JS heap from HeapProfiler in Devtools of > Chrome. It is for Web Developer. To the best of my knowledge, Chrome uses v8-profiler.h. > But I want to kown is that is there a tool for detecting or analyzing the > C++ heap for V8 itself ? I'm not sure what you mean by "C++ heap". The heap profiler profiles the JS heap. For instrumenting the C/C++ heap, you'd use standard tools like mtrace or valgrind. -- -- 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.
