Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ce5eff642ad06b36e2c8473aa4fefd4bffe0f696..8ac82b67c4a45be22ee4f6a23aeecfb83dbbfb0f 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5932,7 +5932,8 @@ class V8_EXPORT Isolate { |
* is initialized. It is the embedder's responsibility to stop all CPU |
* profiling activities if it has started any. |
*/ |
- CpuProfiler* GetCpuProfiler(); |
+ V8_DEPRECATE_SOON("CpuProfiler should be created with CpuProfiler::New call.", |
+ CpuProfiler* GetCpuProfiler()); |
/** Returns true if this isolate has a current context. */ |
bool InContext(); |