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

Issue 7607035: CrOS - Memory debug widget shows anonymous memory and renderer kills. (Closed)

Created:
9 years, 4 months ago by James Cook
Modified:
9 years, 4 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

CrOS - Memory debug widget shows anonymous memory and renderer kills. Change the status area memory widget to display anonymous memory allocated, which is a good proxy for "total memory allocated" and what we use in the UMA histograms (Platform.MemuseAnon[0-5]). Also display renderer kills, which will tick up when we run out of memory and the OOM killer starts running. Refactor GetSystemMemoryInfo to use a struct. BUG=chromium-os:18969 TEST=manual, turn on memory status widget in about:flags and restart, open some tabs and watch memory consumption increase, use Task Manager / End Process to kill a process and watch the kill count increase Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96423

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -47 lines) Patch
M base/process_util.h View 1 chunk +16 lines, -4 lines 0 comments Download
M base/process_util_linux.cc View 4 chunks +21 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/status/memory_menu_button.h View 1 5 chunks +23 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/status/memory_menu_button.cc View 1 5 chunks +49 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
James Cook
Steven, please have a look at memory_menu_button.* Darin, please have a look at base/process_util*. Basically ...
9 years, 4 months ago (2011-08-10 17:28:17 UTC) #1
darin (slow to review)
LGTM
9 years, 4 months ago (2011-08-10 18:03:04 UTC) #2
stevenjb
http://codereview.chromium.org/7607035/diff/1/chrome/browser/chromeos/status/memory_menu_button.cc File chrome/browser/chromeos/status/memory_menu_button.cc (right): http://codereview.chromium.org/7607035/diff/1/chrome/browser/chromeos/status/memory_menu_button.cc#newcode64 chrome/browser/chromeos/status/memory_menu_button.cc:64: std::wstring label = base::StringPrintf(L"%d MB / %d", nit: maybe ...
9 years, 4 months ago (2011-08-10 19:45:51 UTC) #3
James Cook
Steven, comments addressed. Darin, no changes to base/* from previous. http://codereview.chromium.org/7607035/diff/1/chrome/browser/chromeos/status/memory_menu_button.cc File chrome/browser/chromeos/status/memory_menu_button.cc (right): http://codereview.chromium.org/7607035/diff/1/chrome/browser/chromeos/status/memory_menu_button.cc#newcode64 ...
9 years, 4 months ago (2011-08-10 22:07:52 UTC) #4
stevenjb
9 years, 4 months ago (2011-08-10 23:34:29 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698