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

Issue 9669039: Provide access to process private and shared memory size from WebKit code (Closed)

Created:
8 years, 9 months ago by yurys
Modified:
8 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, hazelwood_google.com
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Provide access to process private and shared memory size from WebKit code. We need this to show render process native memory distribution between different components in the DevTools. WebKit part of the change was landed as part of https://bugs.webkit.org/show_bug.cgi?id=87263 BUG=108777 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139755

Patch Set 1 #

Patch Set 2 : Return both private and shared memory size in one call #

Total comments: 2

Patch Set 3 : Moved { on the previous line #

Total comments: 6

Patch Set 4 : Addressed Tony's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -16 lines) Patch
M webkit/glue/webkitplatformsupport_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 3 chunks +23 lines, -16 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
yurys
8 years, 9 months ago (2012-03-11 14:10:58 UTC) #1
pfeldman
lgtm http://codereview.chromium.org/9669039/diff/4/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): http://codereview.chromium.org/9669039/diff/4/webkit/glue/webkitplatformsupport_impl.cc#newcode686 webkit/glue/webkitplatformsupport_impl.cc:686: { { on wrong line.
8 years, 9 months ago (2012-03-11 15:25:26 UTC) #2
yurys
http://codereview.chromium.org/9669039/diff/4/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): http://codereview.chromium.org/9669039/diff/4/webkit/glue/webkitplatformsupport_impl.cc#newcode686 webkit/glue/webkitplatformsupport_impl.cc:686: { On 2012/03/11 15:25:26, pfeldman wrote: > { on ...
8 years, 9 months ago (2012-03-11 15:25:58 UTC) #3
yurys
Darin, I need an owner's stamp, could you take a look?
8 years, 9 months ago (2012-03-11 15:46:16 UTC) #4
yurys
Darin or Tony can you take a look at this change?
8 years, 6 months ago (2012-05-29 08:07:44 UTC) #5
tony
http://codereview.chromium.org/9669039/diff/5/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): http://codereview.chromium.org/9669039/diff/5/webkit/glue/webkitplatformsupport_impl.cc#newcode688 webkit/glue/webkitplatformsupport_impl.cc:688: static ProcessMetrics* process_metrics = CR_DEFINE_STATIC_LOCAL. It would be nice ...
8 years, 6 months ago (2012-05-29 18:11:18 UTC) #6
tony
To clarify: It's fine to ignore my comments about the upstream change (they're just nits), ...
8 years, 6 months ago (2012-05-29 18:12:42 UTC) #7
yurys
http://codereview.chromium.org/9669039/diff/5/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): http://codereview.chromium.org/9669039/diff/5/webkit/glue/webkitplatformsupport_impl.cc#newcode688 webkit/glue/webkitplatformsupport_impl.cc:688: static ProcessMetrics* process_metrics = On 2012/05/29 18:11:18, tony wrote: ...
8 years, 6 months ago (2012-05-30 08:06:27 UTC) #8
yurys
On 2012/05/29 18:12:42, tony wrote: > To clarify: > It's fine to ignore my comments ...
8 years, 6 months ago (2012-05-30 08:06:47 UTC) #9
tony
LGTM!
8 years, 6 months ago (2012-05-30 17:09:03 UTC) #10
ulan
Yury, quick question regarding this CL. https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (left): https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitplatformsupport_impl.cc#oldcode696 webkit/glue/webkitplatformsupport_impl.cc:696: return process_metrics->GetWorkingSetSize() >> ...
8 years, 3 months ago (2012-09-21 13:30:08 UTC) #11
yurys
https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (left): https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitplatformsupport_impl.cc#oldcode696 webkit/glue/webkitplatformsupport_impl.cc:696: return process_metrics->GetWorkingSetSize() >> 20; On 2012/09/21 13:30:08, ulan wrote: ...
8 years, 3 months ago (2012-09-21 13:52:11 UTC) #12
ulan
8 years, 3 months ago (2012-09-21 13:57:02 UTC) #13
On 2012/09/21 13:52:11, Yury Semikhatsky wrote:
>
https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitpl...
> File webkit/glue/webkitplatformsupport_impl.cc (left):
> 
>
https://chromiumcodereview.appspot.com/9669039/diff/9002/webkit/glue/webkitpl...
> webkit/glue/webkitplatformsupport_impl.cc:696: return
> process_metrics->GetWorkingSetSize() >> 20;
> On 2012/09/21 13:30:08, ulan wrote:
> > Just noticed that this is missing in the current ToT.
> > 
> > Was this removed intentionally? 
> > 
> > GetPagefileUsage() returns virtual memory size and therefore greatly
> > overestimates real memory usage. This causes WebKit to send bogus low memory
> > notifications to V8 and leads to big GC pauses. It is better to use
> > GetWorkingSetSize(). 
> 
> Looks like GetWorkingSetSize was deleted by mistake when I extracted
> CurrentProcessMetrics function. We should return it back.

Ah, I see. Thank you for the quick reply. :)
I'll upload CL that restores it.

Powered by Google App Engine
This is Rietveld 408576698