Index: src/heap-profiler.cc |
diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc |
index 7413b6e6886a18af5dc391ec32a05d686d467d7c..1dc1113214bd17caf5665191c470e0101d9920b7 100644 |
--- a/src/heap-profiler.cc |
+++ b/src/heap-profiler.cc |
@@ -168,7 +168,10 @@ SnapshotObjectId HeapProfiler::GetSnapshotObjectId(Handle<Object> obj) { |
void HeapProfiler::ObjectMoveEvent(Address from, Address to, int size) { |
- ids_->MoveObject(from, to, size); |
+ bool known_object = ids_->MoveObject(from, to, size); |
+ if (!known_object && !allocation_tracker_.is_empty()) { |
+ allocation_tracker_->address_to_trace()->MoveObject(from, to, size); |
+ } |
} |