summaryrefslogtreecommitdiff
path: root/deps/v8/include/v8-profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include/v8-profiler.h')
-rw-r--r--deps/v8/include/v8-profiler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/include/v8-profiler.h b/deps/v8/include/v8-profiler.h
index 621ca8b215..a86402be92 100644
--- a/deps/v8/include/v8-profiler.h
+++ b/deps/v8/include/v8-profiler.h
@@ -287,6 +287,13 @@ class V8_EXPORT CpuProfiler {
static CpuProfiler* New(Isolate* isolate);
/**
+ * Synchronously collect current stack sample in all profilers attached to
+ * the |isolate|. The call does not affect number of ticks recorded for
+ * the current top node.
+ */
+ static void CollectSample(Isolate* isolate);
+
+ /**
* Disposes the CPU profiler object.
*/
void Dispose();
@@ -322,7 +329,8 @@ class V8_EXPORT CpuProfiler {
* Recording the forced sample does not contribute to the aggregated
* profile statistics.
*/
- void CollectSample();
+ V8_DEPRECATED("Use static CollectSample(Isolate*) instead.",
+ void CollectSample());
/**
* Tells the profiler whether the embedder is idle.