Index: src/profiler/heap-profiler.h |
diff --git a/src/profiler/heap-profiler.h b/src/profiler/heap-profiler.h |
index 74539ae142786557bc3229e870b66f076192ed78..32e143c74ff22ddbfce5dadd2823f5122fd64598 100644 |
--- a/src/profiler/heap-profiler.h |
+++ b/src/profiler/heap-profiler.h |
@@ -32,6 +32,7 @@ class HeapProfiler { |
bool StartSamplingHeapProfiler(uint64_t sample_interval, int stack_depth); |
void StopSamplingHeapProfiler(); |
+ bool is_sampling_allocations() { return !sampling_heap_profiler_.is_empty(); } |
AllocationProfile* GetAllocationProfile(); |
void StartHeapObjectsTracking(bool track_allocations); |