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

Issue 15779007: Use totmaps if available on chromeos (Closed)

Created:
7 years, 7 months ago by DaveMoore
Modified:
7 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

Use totmaps if available on chromeos We currently use statm on linux. This provides less than great results. We take total resident memory and subtract "shared pages" from it instead of using a count of pages that only this process has mapped. On chromeos we've added totmaps which sums up the fields from the process' smaps. BUG=125150 TEST=Examine memory reports from about:memory and task manager, and compare them to the sums of the results in the smaps. R=thestig@chromium.org, willchan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202639

Patch Set 1 #

Patch Set 2 : Minor cleanup #

Total comments: 3

Patch Set 3 : Review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -38 lines) Patch
M base/process/process_metrics.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M base/process/process_metrics_linux.cc View 1 2 3 chunks +98 lines, -37 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
DaveMoore
7 years, 7 months ago (2013-05-26 22:25:27 UTC) #1
willchan no longer on Chromium
Sending to erg/thestig for review. Happy to rubberstamp.
7 years, 7 months ago (2013-05-27 21:01:45 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/15779007/diff/2001/base/process/process_metrics_linux.cc File base/process/process_metrics_linux.cc (right): https://codereview.chromium.org/15779007/diff/2001/base/process/process_metrics_linux.cc#newcode296 base/process/process_metrics_linux.cc:296: DCHECK_EQ(totmaps_fields[kPssIndex-1], "Pss:"); nit: prefer DCHECK_EQ(expected, actual) https://codereview.chromium.org/15779007/diff/2001/base/process/process_metrics_linux.cc#newcode301 base/process/process_metrics_linux.cc:301: ...
7 years, 7 months ago (2013-05-28 03:37:40 UTC) #3
willchan no longer on Chromium
rubberstamp lgtm On Mon, May 27, 2013 at 8:37 PM, <thestig@chromium.org> wrote: > lgtm > ...
7 years, 7 months ago (2013-05-28 03:57:13 UTC) #4
DaveMoore
7 years, 6 months ago (2013-05-28 20:16:56 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r202639.

Powered by Google App Engine
This is Rietveld 408576698