Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index 020a744fc0ea3f8e78acb9ce3fbfb36027dd0861..9d6685be0e6579e468fb5a0ec1efc77b279af0cb 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -366,6 +366,10 @@ class Deserializer: public SerializerDeserializer { |
Address Allocate(int space_index, int size) { |
Address address = high_water_[space_index]; |
high_water_[space_index] = address + size; |
+ HeapProfiler* profiler = isolate_->heap_profiler(); |
+ if (profiler->is_tracking_allocations()) { |
+ profiler->NewObjectEvent(address, size); |
+ } |
return address; |
} |