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

Issue 11829032: Add a histogram for renderer memory usage. (Closed)

Created:
7 years, 11 months ago by marja
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, gavinp+memory_chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Add a histogram for renderer memory usage. The difference to Renderer.Memory are: - we're looking at the memory held by our allocator, and not what the system reports - we're sampling not only once an hour, but much more often - the memory is only measured if the command line flag --memory-metrics is given. BUG=160979 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176894

Patch Set 1 : . #

Total comments: 6

Patch Set 2 : Code review (creis) #

Patch Set 3 : Code review (tony) #

Patch Set 4 : build fixes #

Patch Set 5 : moar build fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -34 lines) Patch
M base/metrics/histogram.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.cc View 1 2 3 4 2 chunks +38 lines, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 5 chunks +2 lines, -34 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
marja
jar, creis: Could you review this? This is a modified version of jochen's CL from ...
7 years, 11 months ago (2013-01-10 19:31:32 UTC) #1
jar (doing other things)
Modulo this question below, this looks fine, so creis should see if this is what ...
7 years, 11 months ago (2013-01-14 19:41:18 UTC) #2
marja
Thanks for having a look! https://codereview.chromium.org/11829032/diff/9012/base/metrics/histogram.h File base/metrics/histogram.h (right): https://codereview.chromium.org/11829032/diff/9012/base/metrics/histogram.h#newcode220 base/metrics/histogram.h:220: #define HISTOGRAM_MEMORY_KB(name, sample) HISTOGRAM_CUSTOM_COUNTS( ...
7 years, 11 months ago (2013-01-14 19:42:38 UTC) #3
Charlie Reis
Glad to see you're going with an approach behind a flag. LGTM with nits, but ...
7 years, 11 months ago (2013-01-14 19:59:31 UTC) #4
marja
creis@: Thanks for review! tony@: As an OWNER of webkit/, could you review? https://codereview.chromium.org/11829032/diff/9012/content/public/common/content_switches.cc File ...
7 years, 11 months ago (2013-01-14 20:17:01 UTC) #5
tony
webkit LGTM. I would probably put the new function in webkit_glue.{h,cc} rather than making a ...
7 years, 11 months ago (2013-01-14 20:28:40 UTC) #6
marja
Thanks for review! I moved the code to webkit_glue.{cc,h}.
7 years, 11 months ago (2013-01-14 20:40:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11829032/23001
7 years, 11 months ago (2013-01-14 20:41:16 UTC) #8
commit-bot: I haz the power
Presubmit check for 11829032-23001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-14 20:41:23 UTC) #9
jar (doing other things)
Change to base LGTM
7 years, 11 months ago (2013-01-14 21:54:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11829032/23001
7 years, 11 months ago (2013-01-14 22:11:48 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chrome_frame_net_tests, chrome_frame_unittests, ...
7 years, 11 months ago (2013-01-15 00:05:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11829032/22012
7 years, 11 months ago (2013-01-15 09:33:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11829032/21021
7 years, 11 months ago (2013-01-15 09:59:13 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 13:22:59 UTC) #15
Message was sent while issue was closed.
Change committed as 176894

Powered by Google App Engine
This is Rietveld 408576698