Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Issue 10151005: cros: Log per-process memory use on low memory events (Closed)

Created:
8 years, 8 months ago by James Cook
Modified:
8 years, 8 months ago
CC:
chromium-reviews, MAD, nkostylev+watch_chromium.org, Ilya Sherman, kkania, robertshield, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, jar (doing other things)
Visibility:
Public.

Description

cros: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -55 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/system/syslogs_provider.cc View 1 4 chunks +3 lines, -40 lines 0 comments Download
M chrome/browser/low_memory_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/memory_details.h View 1 4 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 5 chunks +33 lines, -2 lines 0 comments Download
M chrome/browser/memory_details_android.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/memory_details_linux.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/memory_details_mac.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/memory_details_win.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/oom_priority_manager.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/oom_priority_manager.cc View 1 2 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
James Cook
Greg, PTAL. James, I need OWNERS approval for chrome/browser/ui/webui/about_ui.cc -- I changed the signature for ...
8 years, 8 months ago (2012-04-20 00:05:58 UTC) #1
Greg Spencer (Chromium)
LGTM w/nit http://codereview.chromium.org/10151005/diff/1/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10151005/diff/1/chrome/browser/automation/automation_provider_observers.cc#newcode2722 chrome/browser/automation/automation_provider_observers.cc:2722: // tests, but it's how the system ...
8 years, 8 months ago (2012-04-20 00:28:21 UTC) #2
jar (doing other things)
Briefly (insufficiently?) scanning this, I was a bit concerned that we'd be changing when and ...
8 years, 8 months ago (2012-04-20 02:19:18 UTC) #3
do not use
> Can you calm my fears by at least arguing that this can only have ...
8 years, 8 months ago (2012-04-20 02:45:20 UTC) #4
do not use
Ah, perhaps my code is less clear than it could be. I'll make it more ...
8 years, 8 months ago (2012-04-20 02:46:59 UTC) #5
James Cook
Updated - is this more clear?
8 years, 8 months ago (2012-04-20 04:59:39 UTC) #6
Greg Spencer (Chromium)
Looks clearer to me.
8 years, 8 months ago (2012-04-20 16:00:01 UTC) #7
James Hawkins
webui lgtm
8 years, 8 months ago (2012-04-20 16:28:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/10151005/23001
8 years, 8 months ago (2012-04-20 17:04:16 UTC) #9
commit-bot: I haz the power
8 years, 8 months ago (2012-04-20 18:59:06 UTC) #10
Change committed as 133232

Powered by Google App Engine
This is Rietveld 408576698