• Clemens Backes's avatar
    [logging] Avoid redundant heap walks · dd20e392
    Clemens Backes authored
    For logging existing functions, currently walk the heap four times:
    1) For getting the number of JS Code objects,
    2) for getting the actual JS Code objects,
    3) for getting the number of wasm code objects,
    4) for getting the actual wasm code objects.
    
    This CL refactors this to do only two heap walks (one for JS, one for
    wasm). It also avoids the use of the brittle {ScopedVector} and uses a
    {std::vector} instead.
    
    R=thibaudm@chromium.org
    
    Bug: chromium:1125986
    Change-Id: I47e3c41ed65f4011ad8826f5e115db6459680807
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2571121
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71642}
    dd20e392
Name
Last commit
Last update
..
OWNERS Loading commit data...
code-events.h Loading commit data...
counters-definitions.h Loading commit data...
counters-inl.h Loading commit data...
counters.cc Loading commit data...
counters.h Loading commit data...
local-logger.cc Loading commit data...
local-logger.h Loading commit data...
log-inl.h Loading commit data...
log-utils.cc Loading commit data...
log-utils.h Loading commit data...
log.cc Loading commit data...
log.h Loading commit data...
metrics.cc Loading commit data...
metrics.h Loading commit data...
tracing-flags.cc Loading commit data...
tracing-flags.h Loading commit data...