Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 042c37e4db8bdf7cc872765869dcbd941c911c0d..f73af75a691500ace737cf7f002409c86a3f3011 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -370,7 +370,7 @@ void Heap::EvacuateNewSpace(Thread* thread, GCReason reason) { |
if (BeginNewSpaceGC(thread)) { |
RecordBeforeGC(kNew, kFull); |
VMTagScope tagScope(thread, VMTag::kGCNewSpaceTagId); |
- TIMELINE_FUNCTION_GC_DURATION(thread, "CollectNewGeneration"); |
+ TIMELINE_FUNCTION_GC_DURATION(thread, "EvacuateNewGeneration"); |
NOT_IN_PRODUCT(UpdateClassHeapStatsBeforeGC(kNew)); |
new_space_.Evacuate(); |
NOT_IN_PRODUCT(isolate()->class_table()->UpdatePromoted()); |
@@ -390,7 +390,7 @@ void Heap::CollectNewSpaceGarbage(Thread* thread, |
bool invoke_api_callbacks = (api_callbacks == kInvokeApiCallbacks); |
RecordBeforeGC(kNew, reason); |
VMTagScope tagScope(thread, VMTag::kGCNewSpaceTagId); |
- TIMELINE_FUNCTION_GC_DURATION(thread, "EvacuateNewGeneration"); |
+ TIMELINE_FUNCTION_GC_DURATION(thread, "CollectNewGeneration"); |
NOT_IN_PRODUCT(UpdateClassHeapStatsBeforeGC(kNew)); |
new_space_.Scavenge(invoke_api_callbacks); |
NOT_IN_PRODUCT(isolate()->class_table()->UpdatePromoted()); |