Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index e2dd2a3e273208db864f232ea2033b0afc238ac2..d9b0222a4084b810fe6254b43a358882a2b11ec8 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -28,6 +28,7 @@ |
#include "v8.h" |
#include "execution.h" |
+#include "heap-profiler.h" |
#include "global-handles.h" |
#include "ic-inl.h" |
#include "mark-compact.h" |
@@ -2218,6 +2219,7 @@ int MarkCompactCollector::RelocateOldNonCodeObject(HeapObject* obj, |
if (copied_to->IsJSFunction()) { |
PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
} |
+ HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
return obj_size; |
} |
@@ -2264,6 +2266,7 @@ int MarkCompactCollector::RelocateCodeObject(HeapObject* obj) { |
// Notify the logger that compiled code has moved. |
PROFILE(CodeMoveEvent(old_addr, new_addr)); |
} |
+ HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
return obj_size; |
} |
@@ -2308,6 +2311,7 @@ int MarkCompactCollector::RelocateNewObject(HeapObject* obj) { |
if (copied_to->IsJSFunction()) { |
PROFILE(FunctionMoveEvent(old_addr, new_addr)); |
} |
+ HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); |
return obj_size; |
} |