Index: include/v8-profiler.h |
diff --git a/include/v8-profiler.h b/include/v8-profiler.h |
index e538f4a84068e6836567453eddb1b00b7d0ccbd4..c23755310e23546b11e53dcfe2ec771ff88f11b1 100644 |
--- a/include/v8-profiler.h |
+++ b/include/v8-profiler.h |
@@ -483,6 +483,20 @@ class V8_EXPORT HeapProfiler { |
*/ |
void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); |
+ /** |
+ * Starts recording JS allocations immediately as they arrive |
+ * and tracking of heap objects population statistics. |
+ */ |
+ void StartRecordingHeapAllocations(); |
+ |
+ /** |
+ * Stops recording JS allocations and tracking of heap objects |
+ * population statistics, cleans all collected heap objects |
+ * population statistics data. |
+ */ |
+ void StopRecordingHeapAllocations(); |
+ |
+ |
private: |
HeapProfiler(); |
~HeapProfiler(); |