Descriptionbase: Add soft memory limit to DiscardableMemoryManager.
This adds a soft memory limit to the discardable memory manager. Only
allocations that haven't been used in specific amount of time are
affected by this limit. This allows a client to use a much higher hard
limit so temporary spikes in required usage can be handled efficiently
without causing an increase in usage while idle.
A "reduce memory usage" function is added to the discardable memory
interface to allow the client to effectively trigger purging of memory
that is affected by the soft limit when system reaches what would be
considered an idle state.
BUG=383361, 372158
TEST=base_unittests --gtest_filter=DiscardableMemoryManagerTest.ReduceMemoryUsage
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281795
Patch Set 1 #Patch Set 2 : v2 #
Total comments: 2
Patch Set 3 : cl format #Patch Set 4 : fix typo in comment #
Total comments: 9
Patch Set 5 : address review feedback #
Total comments: 4
Patch Set 6 : remove incorrect comment and make Now() private #Patch Set 7 : fix mac build #
Messages
Total messages: 25 (0 generated)
|