Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index f24c5828381ab8ba0065ba942c9b3d8a629f9f3d..168aa50b36e540b2467c9a2d63da90f0c3c7cbb2 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -259,6 +259,9 @@ MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
result = map_space_->AllocateRaw(size_in_bytes); |
} |
if (result->IsFailure()) old_gen_exhausted_ = true; |
+ if (profiler->is_tracking_allocations() && result->To(&object)) { |
+ profiler->NewObjectEvent(object->address(), size_in_bytes); |
+ } |
return result; |
} |