Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 23c356b7e377572bd792e2a1327f78ea96db0528..c847b8424c72282187c23b31856bdd908d9a4cc8 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2520,6 +2520,7 @@ int MarkCompactCollector::RelocateOldNonCodeObject(HeapObject* obj, |
HeapObject* copied_to = HeapObject::FromAddress(new_addr); |
if (copied_to->IsJSFunction()) { |
PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
+ PROFILE(FunctionCreateEventFromMove(JSFunction::cast(copied_to), obj)); |
} |
HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
@@ -2612,6 +2613,7 @@ int MarkCompactCollector::RelocateNewObject(HeapObject* obj) { |
HeapObject* copied_to = HeapObject::FromAddress(new_addr); |
if (copied_to->IsJSFunction()) { |
PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
+ PROFILE(FunctionCreateEventFromMove(JSFunction::cast(copied_to), obj)); |
} |
HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |