| Index: test/cctest/profiler-extension.h
|
| diff --git a/test/cctest/profiler-extension.h b/test/cctest/profiler-extension.h
|
| index 00f9a5a8085fe62c40f0f31202c69fef2efb5852..ccb6d5ed7fdf28f2ab787133c0c7789b1dc996fb 100644
|
| --- a/test/cctest/profiler-extension.h
|
| +++ b/test/cctest/profiler-extension.h
|
| @@ -37,6 +37,18 @@ namespace internal {
|
|
|
| class ProfilerExtension : public v8::Extension {
|
| public:
|
| + class Scope {
|
| + public:
|
| + explicit Scope(v8::Isolate* isolate);
|
| + ~Scope();
|
| +
|
| + static v8::CpuProfiler* profiler() { return profiler_; }
|
| +
|
| + private:
|
| + friend class ProfilerExtension;
|
| + static v8::CpuProfiler* profiler_;
|
| + };
|
| +
|
| ProfilerExtension() : v8::Extension("v8/profiler", kSource) { }
|
| virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
|
| v8::Isolate* isolate, v8::Local<v8::String> name);
|
|
|