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

Issue 2911743002: Add UMA metric of time to start the first render process (Closed)

Created:
3 years, 7 months ago by hans
Modified:
3 years, 6 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, Charlie Harrison, tdresser
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metric of time to start the first renderer process BUG=728324 TBR=fdoray Review-Url: https://codereview.chromium.org/2911743002 Cr-Commit-Position: refs/heads/master@{#476049} Committed: https://chromium.googlesource.com/chromium/src/+/85233645d272d0d71cc23bb73d40ad4a1d4d7d39

Patch Set 1 #

Patch Set 2 : fix copy-o #

Total comments: 6

Patch Set 3 : Address comments #

Patch Set 4 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -7 lines) Patch
M chrome/browser/metrics/first_web_contents_profiler.cc View 2 chunks +6 lines, -1 line 1 comment Download
M chrome/browser/metrics/startup_metrics_browsertest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/startup_metric_utils/browser/startup_metric_utils.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M components/startup_metric_utils/browser/startup_metric_utils.cc View 1 2 2 chunks +11 lines, -4 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
hans
My Chrome-fu feels pretty weak here, but what I want to measure is the time ...
3 years, 7 months ago (2017-05-26 21:22:30 UTC) #2
Ilya Sherman
Metrics LGTM in terms of API use and clarity. Adding Bryan (and cc'ing Tim and ...
3 years, 7 months ago (2017-05-26 22:03:59 UTC) #4
Bryan McQuade
On 2017/05/26 at 22:03:59, isherman wrote: > Metrics LGTM in terms of API use and ...
3 years, 7 months ago (2017-05-26 22:28:32 UTC) #5
Bryan McQuade
https://codereview.chromium.org/2911743002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2911743002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode114 chrome/browser/metrics/first_web_contents_profiler.cc:114: ->GetInitTimeForNavigationMetrics()); I notice that the comment for GetInitTimeForNavigationMetrics includes: ...
3 years, 7 months ago (2017-05-26 22:28:42 UTC) #6
tdresser
A few extremely minor nits. Other than Bryan's concern, this LGTM. https://codereview.chromium.org/2911743002/diff/20001/chrome/browser/metrics/startup_metrics_browsertest.cc File chrome/browser/metrics/startup_metrics_browsertest.cc (right): ...
3 years, 6 months ago (2017-05-29 13:38:03 UTC) #8
hans
On 2017/05/26 22:28:32, Bryan McQuade wrote: > On 2017/05/26 at 22:03:59, isherman wrote: > > ...
3 years, 6 months ago (2017-05-31 17:58:00 UTC) #9
Bryan McQuade
On 2017/05/31 at 17:58:00, hans wrote: > On 2017/05/26 22:28:32, Bryan McQuade wrote: > > ...
3 years, 6 months ago (2017-05-31 18:19:32 UTC) #10
hans
On 2017/05/31 18:19:32, Bryan McQuade wrote: > On 2017/05/31 at 17:58:00, hans wrote: > > ...
3 years, 6 months ago (2017-05-31 19:48:26 UTC) #11
hans
https://codereview.chromium.org/2911743002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2911743002/diff/20001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode114 chrome/browser/metrics/first_web_contents_profiler.cc:114: ->GetInitTimeForNavigationMetrics()); On 2017/05/26 22:28:42, Bryan McQuade wrote: > I ...
3 years, 6 months ago (2017-05-31 19:48:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2911743002/60001
3 years, 6 months ago (2017-05-31 19:50:35 UTC) #15
hans
fdoray: Can you take an owner's look for components/startup_metric_utils/browser/ ?
3 years, 6 months ago (2017-05-31 20:15:17 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/452328)
3 years, 6 months ago (2017-05-31 20:43:06 UTC) #19
hans
On 2017/05/31 20:15:17, hans wrote: > fdoray: Can you take an owner's look for > ...
3 years, 6 months ago (2017-05-31 20:44:36 UTC) #21
hans
tbr'ing so we can get this into the next dev release
3 years, 6 months ago (2017-05-31 21:43:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2911743002/60001
3 years, 6 months ago (2017-05-31 21:44:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2911743002/60001
3 years, 6 months ago (2017-05-31 21:46:19 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/85233645d272d0d71cc23bb73d40ad4a1d4d7d39
3 years, 6 months ago (2017-05-31 21:53:05 UTC) #31
Ilya Sherman
On 2017/05/31 21:43:53, hans wrote: > tbr'ing so we can get this into the next ...
3 years, 6 months ago (2017-05-31 23:23:12 UTC) #32
gab
https://codereview.chromium.org/2911743002/diff/60001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/2911743002/diff/60001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode114 chrome/browser/metrics/first_web_contents_profiler.cc:114: ->GetInitTimeForNavigationMetrics()); Does the browser get this signal before? startup_metric_utils ...
3 years, 6 months ago (2017-06-01 14:56:45 UTC) #33
hans
3 years, 6 months ago (2017-06-01 22:30:06 UTC) #34
Message was sent while issue was closed.
On 2017/06/01 14:56:45, gab wrote:
>
https://codereview.chromium.org/2911743002/diff/60001/chrome/browser/metrics/...
> File chrome/browser/metrics/first_web_contents_profiler.cc (right):
> 
>
https://codereview.chromium.org/2911743002/diff/60001/chrome/browser/metrics/...
> chrome/browser/metrics/first_web_contents_profiler.cc:114:
> ->GetInitTimeForNavigationMetrics());
> Does the browser get this signal before? startup_metric_utils works by getting
> individual signals (e.g. process start, message loop start, etc.) and then
> computing metrics from them.
> 
> Would be preferable to keep it that way instead of passing two values into
> RecordNonEmptyPaint() -- e.g. if we wanted RenderedStart->MainNavigationStart
we
> could not with this approach.
> 
>
https://codereview.chromium.org/2911743002/diff/60001/components/startup_metr...
> File components/startup_metric_utils/browser/startup_metric_utils.cc (right):
> 
>
https://codereview.chromium.org/2911743002/diff/60001/components/startup_metr...
> components/startup_metric_utils/browser/startup_metric_utils.cc:746:
> UMA_HISTOGRAM_WITH_TEMPERATURE(
> UMA_HISTOGRAM_AND_TRACE_WITH_TEMPERATURE
> 
> so it appears in startup trace events.

Thanks for the comments! I started a follow-up patch to address this:
https://codereview.chromium.org/2913423003/

Powered by Google App Engine
This is Rietveld 408576698