Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: test/cctest/profiler-extension.h

Issue 2117343006: Introduce v8::CpuProfiler::New and v8::CpuProfiler::Dispose API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698