Description[Mac] Report statistics more regularly in Mac memory pressure monitor
Currently, we only report UMA statistics on receiving a pressure
change event from the system. This means that we could be missing
many ticks of "normal" pressure from sessions that never encounter
pressure, skewing our stats. Other platforms don't have this issue
since they poll.
This change piggybacks statistic reporting on GetCurrentPressureLevel()
which is called regularly by RendererFrameManager::GetMaxNumberOfSavedFrames()
This also allows us to enable reporting for Sierra.
To make this work, GetCurrentPressureLevel is now declared non-const.
There don't appear to be any const MemoryPressureMonitors in the codebase
at the moment, so this should be safe.
BUG=655304
Committed: https://crrev.com/f518237b7651d1eeb115bffcc51f11ee0e9078cc
Cr-Commit-Position: refs/heads/master@{#434660}
Patch Set 1 #Patch Set 2 : Fix parameter name in header #
Total comments: 4
Patch Set 3 : Use std::modf #Patch Set 4 : Report in 5 second ticks #Messages
Total messages: 29 (13 generated)
|