DescriptionConsolidate code monitoring low memory kills and OOM kills to MemoryKillsMonitor on ChromeOS
Rename OomKillsMonitor to MemoryKillsMonitor and move it from
arc namespace to memory namespace. Now it is responsible for
1. Log OOM kill events by listening to kernel messages (in a dedicated thread).
2. Log low memory kill events when TabManager kills processes (called from UI thread).
It logs those events to
1. Chrome UMA
2. A local file if --memory-kills-log is given
It starts a new monitoring session when a new BrowserProcess is created.
BUG=none
TEST=manual
Committed: https://crrev.com/43f78af4b909bca7f815b862b9ab3f17c5cacddf
Cr-Commit-Position: refs/heads/master@{#435743}
Patch Set 1 #Patch Set 2 : Add spaces between "PRId64" #Patch Set 3 : Fix compile error on Android #Patch Set 4 : restrict it to ChromeoS #
Total comments: 18
Patch Set 5 : review comments #
Total comments: 16
Patch Set 6 : review comments 2. fix move constructor #Patch Set 7 : review comments 2. fix move constructor #
Total comments: 2
Patch Set 8 : Add unittest #Patch Set 9 : move unittest to chromeos only build rule #Messages
Total messages: 42 (26 generated)
|