Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 23bfbd807d8d1430e4e38c3dc9044c41652dfe3f..167e7a93b1cfab03670607003b9593259ebcf27c 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -685,6 +685,10 @@ void Heap::UpdateSurvivalRateTrend(int start_new_space_size) { |
void Heap::PerformGarbageCollection(GarbageCollector collector, |
GCTracer* tracer, |
CollectionPolicy collectionPolicy) { |
+ if (collector != SCAVENGER) { |
+ PROFILE(CodeMovingGCEvent()); |
+ } |
+ |
VerifySymbolTable(); |
if (collector == MARK_COMPACTOR && global_gc_prologue_callback_) { |
ASSERT(!allocation_allowed_); |