Index: src/heap/memory-reducer.cc |
diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc |
index 634c625755dbe611fe103dd270ed3509a6cf4cde..25378b59112a0584cb4f6e750f0719becd66170f 100644 |
--- a/src/heap/memory-reducer.cc |
+++ b/src/heap/memory-reducer.cc |
@@ -25,8 +25,11 @@ MemoryReducer::TimerTask::TimerTask(MemoryReducer* memory_reducer) |
void MemoryReducer::TimerTask::RunInternal() { |
Heap* heap = memory_reducer_->heap(); |
Event event; |
+ double time_ms = heap->MonotonicallyIncreasingTimeInMs(); |
+ heap->tracer()->SampleAllocation(time_ms, heap->NewSpaceAllocationCounter(), |
+ heap->OldGenerationAllocationCounter()); |
event.type = kTimer; |
- event.time_ms = heap->MonotonicallyIncreasingTimeInMs(); |
+ event.time_ms = time_ms; |
event.low_allocation_rate = heap->HasLowAllocationRate(); |
event.can_start_incremental_gc = |
heap->incremental_marking()->IsStopped() && |