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

Issue 2913423003: Refactor recording of the Startup.FirstWebContents.RenderProcessHostInit.ToNonEmptyPaint metric

Created:
3 years, 6 months ago by hans
Modified:
3 years, 6 months ago
CC:
chromium-reviews, jam, creis+watch_chromium.org, nasko+codewatch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor recording of the Startup.FirstWebContents.RenderProcessHostInit.ToNonEmptyPaint metric BUG=728324

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -15 lines) Patch
M chrome/browser/metrics/first_web_contents_profiler.cc View 1 chunk +1 line, -4 lines 0 comments Download
M components/startup_metric_utils/browser/startup_metric_utils.h View 2 chunks +5 lines, -3 lines 0 comments Download
M components/startup_metric_utils/browser/startup_metric_utils.cc View 4 chunks +14 lines, -8 lines 1 comment Download
M content/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
hans
This doesn't pass presubmit: ** Presubmit ERRORS ** You added one or more #includes that ...
3 years, 6 months ago (2017-06-01 22:29:18 UTC) #2
gab
+fdoray who has experience with the whole content/components dance for startup metrics. fdoray: do you ...
3 years, 6 months ago (2017-06-02 18:31:34 UTC) #4
hans
On 2017/06/02 18:31:34, gab wrote: > +fdoray who has experience with the whole content/components dance ...
3 years, 6 months ago (2017-06-05 23:39:43 UTC) #5
fdoray
On 2017/06/05 23:39:43, hans wrote: > On 2017/06/02 18:31:34, gab wrote: > > +fdoray who ...
3 years, 6 months ago (2017-06-06 17:38:40 UTC) #6
gab
3 years, 6 months ago (2017-06-06 17:44:52 UTC) #9
On 2017/06/06 17:38:40, fdoray wrote:
> On 2017/06/05 23:39:43, hans wrote:
> > On 2017/06/02 18:31:34, gab wrote:
> > > +fdoray who has experience with the whole content/components dance for
> startup
> > > metrics. fdoray: do you agree it's better to call startup_metrics_utils
> method
> > > individually per timing? If so how do we get this timing to the component
> > > without violating DEPS?
> > 
> > fdoray: ping?
> 
> The solution to avoid violating DEPS would be to add a method to
> content::ContentBrowserClient. The ChromeContentBrowserClient implementation
> would call the function in components/startup_metric_utils/ to record the
> histogram. I'm not convinced that the complexity of this change is worth the
> benefits. Making this change would change nothing to the recorded value.

True but passing a specific timing to RecordFirstWebContentsNonEmptyPaint() is
weird (i.e. if we do this a few more times this code will be a spaghetti mess).

Ideally each timing signal would be passed to the resource coordinator service
without violating DEPS and it would be the one recording desired timings. It
currently doesn't do that though... +oysteine: this was in the initial plan are
we still pursuing that (GRC as a metrics organizer)?

Powered by Google App Engine
This is Rietveld 408576698