• Seth Brenith's avatar
    Categorize more objects as kCode in heap snapshots · 4e45eed9
    Seth Brenith authored
    Currently, the category named “(compiled code)” contains Code,
    SharedFunctionInfo, and Script objects. However, there are various other
    object types that are allocated per script function, such as
    BytecodeArray and FeedbackVector. There are also plain FixedArrays which
    are used for function-specific data such as polymorphic feedback and
    code deoptimization data. I propose we move all of this to the
    “(compiled code)” category, because this memory usage is related to the
    number of functions in the script, the size of those functions, and/or
    the number of times those functions have been called.
    
    Bug: v8:12769
    Change-Id: Ib5e0265a9ef88063596c17419f5b65f683156c52
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3569876Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#79827}
    4e45eed9
heap-snapshot-generator.cc 127 KB