• Ted Meyer's avatar
    Add event cache size limit to media devtools · 79e55e3e
    Ted Meyer authored
    This adds a cache for both total number of players as well as total
    number of events kept by the each individual player, in order to prevent
    long-living pages from creating an otherwise unbounded number of events
    and creating memory pressure.
    
    There is some logic for selecting which players to prune, but no logic
    to do anything special for events yet.
    
    Events, Messages, and Errors are all subject to the same cache size
    limits, but the Properties can't grow unbounded so they aren't.
    
    R=dalecurtis
    
    Bug: 1145392
    Change-Id: Iab39207276b6179b9f8828df7ced210154ab97dc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2517928
    Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
    Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#827070}
    79e55e3e
inspector_media_event_handler.cc 3.88 KB