Chromium Code Reviews
DescriptionAdd method for simulating MemoryPressureListener notifications
This patch adds a new static method to MemoryPressureListener which can
be used to simulate memory pressure notifications:
MemoryPressureListener::SimulatePressureNotification(level);
This patch is a part of the plan to implement a DevTools API for
suppressing and simulating memory pressure signals in Chrome. The main
use case for this feature is to enforce consistent conditions across
memory measurements. See https://goo.gl/cZFdH3 for more details.
BUG=516776
Committed: https://crrev.com/4ab4ed5c5bc25667589866f64d21e1856fefb628
Cr-Commit-Position: refs/heads/master@{#351061}
Patch Set 1 #
Total comments: 7
Patch Set 2 : Address Lei Zhang's comment #
Messages
Total messages: 23 (8 generated)
|
|||||||||||||||||||||||||||||||||||||