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

Issue 5992005: Mac: Shared and Private memory for Task Manager... (Closed)

Created:
10 years ago by sail
Modified:
8 years, 3 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Mac: Shared and Private memory for Task Manager This change adds support for calculating shared and private memory for the Task Manager window. The goal here is to match the values shown in Activity Monitor. The old "Memory" column already matched Activity Monitor's "Real Memory Size" field. With this change the "Private" column now matches Activity Monitor's "Private Memory Size" field too. Unfortunately the "Shared" column doesn't exactly match Activity Monitor's "Shared Memory Size" field. From what I could understand of the libtop source this field is supposed to represent the resident shared memory that isn't being referenced by any other process. Since our code only looks at the memory for a single process we can't detect references by other processes. This means our shared memory value will always be slightly higher than Activity Monitor's. BUG=25454 TEST=Opened a few tabs and verified that the Private values in Task Manager matched the values in Activity Monitor. Verified that the Shared values were just slightly higher than those in Activity Monitor. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69863

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 32

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -3 lines) Patch
M base/process_util_mac.mm View 1 2 3 4 5 6 7 3 chunks +123 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sail
10 years ago (2010-12-21 03:55:46 UTC) #1
viettrungluu
Mostly LG, mostly just lots of nits. Vaguely non-trivial stuff: - I would just try ...
10 years ago (2010-12-21 04:21:06 UTC) #2
viettrungluu
P.S. Adding Nico since I'm out until next week. He should be able to LGTM ...
10 years ago (2010-12-21 04:22:57 UTC) #3
sail
Addressed review comments. http://codereview.chromium.org/5992005/diff/4001/base/process_util_mac.mm File base/process_util_mac.mm (right): http://codereview.chromium.org/5992005/diff/4001/base/process_util_mac.mm#newcode14 base/process_util_mac.mm:14: #include <mach/mach_vm.h> On 2010/12/21 04:21:06, viettrungluu ...
10 years ago (2010-12-21 18:15:32 UTC) #4
Nico
Cool! One real comment (the if condition), the rest are nits. Out of interest: Did ...
10 years ago (2010-12-21 18:30:06 UTC) #5
sail
Addressed review comments. I'm not sure what the best way to measure the CPU usage ...
10 years ago (2010-12-21 19:31:42 UTC) #6
Nico
LG On Tue, Dec 21, 2010 at 11:31 AM, <sail@chromium.org> wrote: > Addressed review comments. ...
10 years ago (2010-12-21 19:45:27 UTC) #7
sail
> Might it be worth to return early if both pointers passed in are NULL? ...
10 years ago (2010-12-21 19:50:19 UTC) #8
Nico
Ship it! http://codereview.chromium.org/5992005/diff/21001/base/process_util_mac.mm File base/process_util_mac.mm (right): http://codereview.chromium.org/5992005/diff/21001/base/process_util_mac.mm#newcode271 base/process_util_mac.mm:271: // We iterate through each VM region ...
10 years ago (2010-12-21 19:55:07 UTC) #9
sail
Thanks for the review, submitting. http://codereview.chromium.org/5992005/diff/21001/base/process_util_mac.mm File base/process_util_mac.mm (right): http://codereview.chromium.org/5992005/diff/21001/base/process_util_mac.mm#newcode271 base/process_util_mac.mm:271: // We iterate through ...
10 years ago (2010-12-21 19:58:08 UTC) #10
viettrungluu
Wait till mento sees all the "we"s in comments that you're LGing. He'll have a ...
10 years ago (2010-12-22 05:26:53 UTC) #11
shaneelaticejohnson
http://codereview.chromium.org/5992005/diff/4001/base/process_util_mac.mm File base/process_util_mac.mm (right): http://codereview.chromium.org/5992005/diff/4001/base/process_util_mac.mm#newcode263 base/process_util_mac.mm:263: base = SHARED_REGION_BASE_ARM; On 2010/12/21 18:15:33, sail wrote: > ...
8 years, 7 months ago (2012-05-26 05:06:43 UTC) #12
keita.yabu
8 years, 3 months ago (2012-09-24 13:39:33 UTC) #13
5992005 の問題は?良くわかりません。 何をしてもおかしいからSafari を使いましたが、もしあれば教えて下さい。

Powered by Google App Engine
This is Rietveld 408576698