• Francois Doray's avatar
    [extensions] Add feature param to control the delay to suspend an extension event page. · dd60a7b7
    Francois Doray authored
    Intensive wake up throttling limits wake ups from Javascript timers to
    1 per minute for pages that have been backgrounded for 5 minutes. A
    side-effect of this change is that pages that used to cause frequent
    extension messages (e.g. navigation commit) now cause extension messages
    only once per minute. Because extension processes can be terminated after
    15 seconds of inactivity, keeping most pages idle for 1-minute intervals
    *increases* extension process churn (extensions processes that were
    kept alive permanently by frequent messages are now recreated every
    minute).
    
    This CL adds a feature param to control the inactivity delay to
    terminate an extension page. We plan to experiment with a 65 seconds
    delay (slightly longer than the intensive wake up throttling delay) and
    assess impact on resource consumption (CPU + memory + power).
    
    Bug: 1144166
    Change-Id: If7b797f375b4ad37c753b8b43e32898e197a91ee
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2510431
    Commit-Queue: François Doray <fdoray@chromium.org>
    Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#823421}
    dd60a7b7
process_manager.cc 43.8 KB