Introduce MemoryUsageMonitor

CrashMemoryMetricsReporterImpl, OomInterventionImpl, and the "additional critical memory pressure generator" we plan to implement, all require access to periodic memory usage data.

This CL introduces a MemoryUsageMonitor class that periodically checks the memory usage and notifies its observers.


Change-Id: I1243ffa43369b6accedf3a0eb000230438c34883
Commit-Queue: Keishi Hattori <>
Reviewed-by: Kentaro Hara <>
Reviewed-by: Daniel Cheng <>
Cr-Commit-Position: refs/heads/master@{#625157}
8 files changed