• kschimpf's avatar
    Add counter for new shared/array buffers that fail to allocate space. · 9e28cf13
    kschimpf authored
    Records histogram of ArrayBuffer/SharedArrayBuffer new allocations
    that failed because it couldn't allocate space for the
    buffer. Histogram is based on the buffer size requested.
    
    This counter is intended to give some clue as to how often, and what sizes are being requested. Unfortunately, the how often can't be answered with the current counter. The problem is that V8 doesn't currently support this possibility yet. Hence, for now, introducing a counter that at least counts the number/size of failing requests.
    
    BUG=chromium:704922
    R=bbudge@chromium.org,bradnelson@chromium.org,mtrofin@chromium.org
    
    Review-Url: https://codereview.chromium.org/2786913004
    Cr-Commit-Position: refs/heads/master@{#44318}
    9e28cf13
objects.cc 733 KB