Chromium Code Reviews
Descriptioncros: Log per-process memory use on low memory events
We're seeing a lot of tab reloads caused by the tab discarder, but we're not sure yet where the memory is going. Dump the per-process private and shared memory use (same as the Task Manager columns) for Chrome processes when we hit low memory, such that we can see it in the system logs when users send us a feedback report. This adds tens of milliseconds to the delay between the low memory signal and the tab discard starting, but that isn't significant as we allow 750 ms for the discard to happen and the memory stats are collected asynchronously off of the UI thread.
Also refactor when we log UMA memory statistics - we used to do it every time we collected memory details, but with this change we need to be able to collect the details and skip additional UMA stats.
BUG=124038
TEST=browser_tests OomPriorityManagerTest, manual inspection of logs after triggering tab discard with about:discards
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133232
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use StartFetch to control UMA updates #Patch Set 3 : use AddRef/Release #Patch Set 4 : rebase #Messages
Total messages: 10 (0 generated)
|