I think I like PauseProfiler() and ResumeProfiler() best. EnableProfiler[Sampling]() sounds too much like you can start the profiler lazily through the V8 API, which you cannot. It has to be enabled when V8 is initialized by specifying the correct flag.
Otherwise LGTM. http://codereview.chromium.org/19607 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
