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

Issue 9568046: Linux: Stop using /proc/pid/smaps to calculate memory usage. It's too slow. (Closed)

Created:
8 years, 9 months ago by Lei Zhang
Modified:
8 years, 9 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Kevin Greer
Visibility:
Public.

Description

Linux: Stop using /proc/pid/smaps to calculate memory usage. It's too slow. BUG=62854 TEST=See bug. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124727

Patch Set 1 : #

Total comments: 6

Patch Set 2 : use int64tostr, revise comments #

Patch Set 3 : grammar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -100 lines) Patch
M base/process_util_linux.cc View 1 2 12 chunks +46 lines, -100 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lei Zhang
8 years, 9 months ago (2012-03-01 23:59:02 UTC) #1
willchan no longer on Chromium
Sorry, NACK'ing reviews for a bit. erg@, can you cover for me? I can rubberstamp.
8 years, 9 months ago (2012-03-02 00:05:38 UTC) #2
Lei Zhang
On 2012/03/02 00:05:38, willchan wrote: > Sorry, NACK'ing reviews for a bit. erg@, can you ...
8 years, 9 months ago (2012-03-02 00:07:40 UTC) #3
Elliot Glaysher
https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc#newcode337 base/process_util_linux.cc:337: // Private and Shared working set sizes are obtained ...
8 years, 9 months ago (2012-03-02 00:15:38 UTC) #4
Elliot Glaysher
https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc#newcode337 base/process_util_linux.cc:337: // Private and Shared working set sizes are obtained ...
8 years, 9 months ago (2012-03-02 00:15:38 UTC) #5
Elliot Glaysher
https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc#newcode38 base/process_util_linux.cc:38: return FilePath(kProcDir).Append(base::IntToString(pid)); You're replacing both IntToString() and Int64ToString() calls ...
8 years, 9 months ago (2012-03-02 00:16:24 UTC) #6
Lei Zhang
https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://chromiumcodereview.appspot.com/9568046/diff/5001/base/process_util_linux.cc#newcode38 base/process_util_linux.cc:38: return FilePath(kProcDir).Append(base::IntToString(pid)); On 2012/03/02 00:16:24, Elliot Glaysher wrote: > ...
8 years, 9 months ago (2012-03-02 01:39:02 UTC) #7
Lei Zhang
Oh ya, I think this is correct, but the way these values are used in ...
8 years, 9 months ago (2012-03-02 01:39:48 UTC) #8
Elliot Glaysher
lgtm
8 years, 9 months ago (2012-03-02 17:27:37 UTC) #9
willchan no longer on Chromium
LGTM rubberstamp, thanks Elliot. On Fri, Mar 2, 2012 at 9:27 AM, <erg@chromium.org> wrote: > ...
8 years, 9 months ago (2012-03-02 17:38:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/9568046/2004
8 years, 9 months ago (2012-03-02 17:43:29 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 20:55:03 UTC) #12
Change committed as 124727

Powered by Google App Engine
This is Rietveld 408576698