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

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

Created:
8 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Dai Mikurube (NOT FULLTIME)
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 - we're going through the HistogramCustomizer BUG=160979

Patch Set 1 : #

Patch Set 2 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
M content/renderer/render_thread_impl.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 chunks +16 lines, -1 line 0 comments Download
M content/renderer/renderer_main.cc View 1 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jochen (gone - plz use gerrit)
plz review Jim, the overall histogram usage Charlie, owners approval
8 years, 1 month ago (2012-11-12 15:45:25 UTC) #1
jar (doing other things)
The use of the histograms LGTM (safe and correct). I'm a bit wary of what ...
8 years, 1 month ago (2012-11-12 20:36:43 UTC) #2
jochen (gone - plz use gerrit)
On 2012/11/12 20:36:43, jar wrote: > The use of the histograms LGTM (safe and correct). ...
8 years, 1 month ago (2012-11-12 20:45:28 UTC) #3
jar (doing other things)
Sampling memory is always a strange game. You'll get lots of samples.... and the interesting ...
8 years, 1 month ago (2012-11-12 20:53:02 UTC) #4
Charlie Reis
Rubber stamp LGTM for OWNERs, but I echo a bit of Jim's concern. This data ...
8 years, 1 month ago (2012-11-13 02:41:36 UTC) #5
jochen (gone - plz use gerrit)
I've created crbug.com/160979, wdyt?
8 years, 1 month ago (2012-11-14 15:14:52 UTC) #6
jar (doing other things)
8 years ago (2012-12-18 23:03:40 UTC) #7
Using the message_loop task observer can be expensive.  It is per-task, and it
used a thread-safe observer.  When I single stepped through it, the mere
presence of a non-empty list caused (as I recall) several lock acquisitions and
releases, as well as a few allocations and dellocations.  It was very impressive
:-/.  Truth is, I spotted we were doing this when the list was empty(!?!?!), and
fixed that, but once you populate the list, I can't avoid the problems :-/.

The jankometer (which used this) tended to be flag controlled, so it had no
generic perf impact.

Is this histogram sampling controlled by a flag, and not done in general? Is
this use of task observer new, or old?

You can also get away with a bunch of stats via about:profiler, and that is much
lower cost (and much more detailed).... but not currently gathered in all UMA
uploads, and not yet visualized via logs extraction :-/.

Powered by Google App Engine
This is Rietveld 408576698