Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index 12c46069eb52ccc9054f075edcff49c62bed5cb4..38deb1f31df4c49b8325dd79a04e4ce813116e72 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -213,9 +213,9 @@ void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) { |
profiler->AllocationEvent(object->address(), size_in_bytes); |
} |
- if (FLAG_verify_predictable) { |
- ++allocations_count_; |
+ ++allocations_count_; |
+ if (FLAG_verify_predictable) { |
UpdateAllocationsHash(object); |
UpdateAllocationsHash(size_in_bytes); |
@@ -225,6 +225,12 @@ void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) { |
PrintAlloctionsHash(); |
} |
} |
+ |
+ if (FLAG_trace_allocation_stack_interval > 0) { |
+ if (allocations_count_ % FLAG_trace_allocation_stack_interval == 0) { |
+ isolate()->PrintStack(stdout, Isolate::kPrintStackConcise); |
+ } |
+ } |
} |