• Benedikt Meurer's avatar
    [heap] Add detailed object stats for maps. · e5fd9102
    Benedikt Meurer authored
    This introduces new virtual instance types to further diagnose what's
    going on in MapSpace, namely:
    
     - MAP_ABANDONED_PROTOTYPE_TYPE includes all the abandoned (fast-mode)
       prototype maps.
     - MAP_DEPRECATED_TYPE includes all the deprecated (fast-mode) maps.
     - MAP_DICTIONARY_TYPE includes all the dictionary-mode maps.
     - MAP_PROTOTYPE_DICTIONARY_TYPE includes all the prototype maps in
       dictionary-mode.
     - MAP_PROTOTYPE_TYPE includes all the prototype maps in fast-mode.
     - MAP_STABLE_TYPE includes all the (fast-mode) stable (leaf) maps.
    
    Those maps who don't fall into any of the buckets above are categorized
    as MAP_TYPE (as before).
    
    The naming was chosen like this to make it possible to filter for the
    relevant maps in the object stats via 'MAP_.*_TYPE'.
    
    Bug: v8:7266
    Change-Id: I233734e96a390ddb391bfff8a34a8fec842d1f7f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1554685Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
    Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60651}
    e5fd9102
object-stats.h 7.14 KB