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

Issue 2694363007: Add memory and CPU histogram for OOPIF

Created:
3 years, 10 months ago by apisarev
Modified:
3 years, 10 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org, ncarter (slow), site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add memory and CPU histogram for OOPIF Current histograms have no information about out-of-process iframes. But it can be useful to be able to see memory and CPU usage of OOPIF renderers. For that reason was created new histograms for OOPIF memory and CPU. BUG=694254 R=jochen@chromium.org

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -4 lines) Patch
M chrome/browser/memory_details.h View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/memory_details.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_memory_details.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 4 chunks +31 lines, -3 lines 0 comments Download
M chrome/browser/performance_monitor/process_metrics_history.h View 1 chunk +1 line, -0 lines 1 comment Download
M chrome/browser/performance_monitor/process_metrics_history.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
apisarev
3 years, 10 months ago (2017-02-17 15:18:46 UTC) #1
jochen (gone - plz use gerrit)
I can't approve this histograms.xml part, sorry
3 years, 10 months ago (2017-02-17 15:28:40 UTC) #2
apisarev
On 2017/02/17 15:28:40, jochen wrote: > I can't approve this histograms.xml part, sorry Ok, I ...
3 years, 10 months ago (2017-02-17 15:32:34 UTC) #3
jochen (gone - plz use gerrit)
+nasko to look at the content API Is it possible to write a test for ...
3 years, 10 months ago (2017-02-17 15:32:47 UTC) #5
apisarev
On 2017/02/17 15:32:47, jochen wrote: > +nasko to look at the content API > > ...
3 years, 10 months ago (2017-02-17 15:39:38 UTC) #8
nasko
On 2017/02/17 15:39:38, apisarev wrote: > On 2017/02/17 15:32:47, jochen wrote: > > +nasko to ...
3 years, 10 months ago (2017-02-17 16:48:27 UTC) #9
Charlie Reis
On 2017/02/17 16:48:27, nasko (out until Feb 27th) wrote: > I'll defer to creis@, since ...
3 years, 10 months ago (2017-02-17 20:42:38 UTC) #10
Charlie Reis
On 2017/02/17 20:42:38, Charlie Reis wrote: > On 2017/02/17 16:48:27, nasko (out until Feb 27th) ...
3 years, 10 months ago (2017-02-17 21:14:13 UTC) #11
apisarev
3 years, 10 months ago (2017-02-20 14:33:06 UTC) #13
On 2017/02/17 20:42:38, Charlie Reis wrote:
> On 2017/02/17 16:48:27, nasko (out until Feb 27th) wrote:
> > I'll defer to creis@, since I will be out starting later today.
> 
> Thanks for starting this!  Seems worthwhile to have something along these
lines.
> 
> I have several thoughts about the names and how to gather the data, but I want
> to see which question you're trying to answer first.  Keep in mind that OOPIFs
> are often placed in normal renderer or extension processes (e.g., an extension
> OOPIF will go into the existing extension process, and even processes created
> for web OOPIFs might open a same-site main frame in the same process).  In
this
> sense, processes tend to contain a mix of main frames and subframes.
> 
> I mention this because we wouldn't want to interpret this data as saying
"OOPIF
> processes are really big" if the processes we're looking at also frequently
> include other things (and may have been created for other reasons, like
> extension background pages).  I'm not even sure if it's the common case that a
> process with an OOPIF only contains OOPIFs.
> 
> Let me know what question you'd like to answer and we can figure out how to
> gather and name the histograms.
> 
> (Please also file a bug for this, so we can track it after the CL lands.)

I create a new issue and link it to review.
The idea was in collecting information about OOPIF resource consumption.
I found the only way to get memory and CPU information about the whole process.
And I don't know how it can be split into smaller parts, per (sub) frame.
Currently, I handle only one case when OOPIF used for ad placed in separate
renderer process. And with such assumption, my code seems legit. In more
complicated cases it wouldn't work, of course.
If you can give me advice how to do it, I would try to improve my solution.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698