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

Issue 5981007: fix about:memory and memory histograms to show extensions more clearly (Closed)

Created:
10 years ago by Erik does not do reviews
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

fix about:memory and memory histograms BUG=22020 TEST=about:memory Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70236

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 2

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : fix some bugs and support more subtypes #

Patch Set 5 : added todo #

Total comments: 2

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -26 lines) Patch
M chrome/browser/browser_about_handler.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/memory_details.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 2 3 4 5 10 chunks +98 lines, -13 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/child_process_info.h View 1 2 3 4 5 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/common/child_process_info.cc View 1 2 3 4 5 5 chunks +47 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Erik does not do reviews
asargent: I think you're the only one around today, so you get the short straw. ...
10 years ago (2010-12-23 20:49:03 UTC) #1
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/5981007/diff/2001/chrome/common/child_process_info.h File chrome/common/child_process_info.h (right): http://codereview.chromium.org/5981007/diff/2001/chrome/common/child_process_info.h#newcode35 chrome/common/child_process_info.h:35: // NOTE: Do not remove or reorder the ...
10 years ago (2010-12-23 21:32:41 UTC) #2
Mike Belshe
LGTM. A few questions and nits. http://codereview.chromium.org/5981007/diff/5001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): http://codereview.chromium.org/5981007/diff/5001/chrome/browser/memory_details.cc#newcode129 chrome/browser/memory_details.cc:129: RenderProcessHost* rph = ...
10 years ago (2010-12-24 00:50:53 UTC) #3
Erik does not do reviews
I uploaded a new patch that fixed a bug && vs. & and added support ...
10 years ago (2010-12-24 00:52:11 UTC) #4
asargent_no_longer_on_chrome
updated version lgtm http://codereview.chromium.org/5981007/diff/17001/chrome/browser/memory_details.cc File chrome/browser/memory_details.cc (right): http://codereview.chromium.org/5981007/diff/17001/chrome/browser/memory_details.cc#newcode198 chrome/browser/memory_details.cc:198: if (process.renderer_type == ChildProcessInfo::RENDERER_UNKNOWN) It's not ...
9 years, 12 months ago (2010-12-25 05:20:12 UTC) #5
Erik does not do reviews
9 years, 12 months ago (2010-12-28 16:59:17 UTC) #6
http://codereview.chromium.org/5981007/diff/5001/chrome/browser/memory_detail...
File chrome/browser/memory_details.cc (right):

http://codereview.chromium.org/5981007/diff/5001/chrome/browser/memory_detail...
chrome/browser/memory_details.cc:129: RenderProcessHost* rph =
renderer_iter.GetCurrentValue();
On 2010/12/24 00:50:53, Mike Belshe wrote:
> nit:  I have to think when I see "rph" as to what it might be...  I know
> "render_process_host" is long... your call.

Done.

http://codereview.chromium.org/5981007/diff/5001/chrome/browser/memory_detail...
chrome/browser/memory_details.cc:262: case ChildProcessInfo::RENDERER_UNKNOWN:
On 2010/12/24 00:50:53, Mike Belshe wrote:
> should there be a DCHECK in the RENDERER_UNKNOWN case?

Done.

http://codereview.chromium.org/5981007/diff/5001/chrome/common/child_process_...
File chrome/common/child_process_info.cc (right):

http://codereview.chromium.org/5981007/diff/5001/chrome/common/child_process_...
chrome/common/child_process_info.cc:158: renderer_type_ = RENDERER_UNKNOWN;
On 2010/12/24 00:50:53, Mike Belshe wrote:
> Is it expected that type_ != RENDER_PROCESS if we are here?  Could we dcheck
> that?

This is the constructor, so it's expected to be uninitialized.  I moved the
declaration to a more reasonable place and changed the assignment to be an
initializer.

http://codereview.chromium.org/5981007/diff/5001/chrome/common/child_process_...
File chrome/common/child_process_info.h (right):

http://codereview.chromium.org/5981007/diff/5001/chrome/common/child_process_...
chrome/common/child_process_info.h:42: RENDERER_CHROME,
On 2010/12/24 00:50:53, Mike Belshe wrote:
> Could you add a comment about RENDERER_CHROME?  I'm not sure what it is?  I
> assume RENDERER_NORMAL is a standard renderer process, what is a
> renderer_chrome?

chrome:// URLs (aka DOMUI, which isn't the clearest name either)

comments added

http://codereview.chromium.org/5981007/diff/5001/chrome/common/child_process_...
chrome/common/child_process_info.h:53: RendererProcessType renderer_type() const
{ return renderer_type_; }
On 2010/12/24 00:50:53, Mike Belshe wrote:
> Simple comment:
> 
> // Returns the renderer subtype of this process.  Only valid if the type() is
> RENDER_PROCESS.

Done.

http://codereview.chromium.org/5981007/diff/17001/chrome/browser/memory_detai...
File chrome/browser/memory_details.cc (right):

http://codereview.chromium.org/5981007/diff/17001/chrome/browser/memory_detai...
chrome/browser/memory_details.cc:198: if (process.renderer_type ==
ChildProcessInfo::RENDERER_UNKNOWN)
On 2010/12/25 05:20:12, Antony Sargent wrote:
> It's not obvious why you're converting unknown renderer types to normal here.
> I'm guessing that's just because for display purposes we'd rather show newly
> added types (that someone has forgotten to update this code to handle) than
hide
> them? Maybe add a comment about this.

I added a comment.

Powered by Google App Engine
This is Rietveld 408576698