• yurys@chromium.org's avatar
    Do not put allocated block into HeapObjectsMap · 55674264
    yurys@chromium.org authored
    Heap allocation reported to AllocationTracker may be later divided into several objects so it is incorrect to put the block as a new HeapObject into the map. We will match allocated block with actual HeapObjects later when iterating Heap (will be addressed in another patch). Since the objects are not assigned an id immediately after creation we need to call FindOrAddEntry when finding id for SharedFunctionInfo during stack crawling.
    
    Removed hooks for tracking creation of AllocationMemento. AllocationMemento is not a HeapObject and should be considered as implementation overhead.
    
    Renamed NewObjectEvent to AllocationEvent which is more precise in case of folded allocations and when a part of the new block becomes AllocationMemento.
    
    BUG=None
    LOG=N
    R=loislo@chromium.org, mstarzinger@chromium.org
    
    Review URL: https://codereview.chromium.org/95283003
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18151 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    55674264
heap-profiler.h 3.57 KB