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

Issue 760763002: Add startup metrics that measure the performance of the first web contents. (Closed)

Created:
6 years ago by erikchen
Modified:
6 years ago
CC:
chromium-reviews, Ilya Sherman, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add startup metrics that measure the performance of the first web contents. I added two metrics: "Startup.FirstWebContents.MainFrameLoad" and "Startup.FirstWebContents.NonEmptyPaint". BUG=436152 Committed: https://crrev.com/c2cec4c53bd674b77a9cfdb662dd38a7dfff5347 Cr-Commit-Position: refs/heads/master@{#306884}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Comments from isherman. #

Total comments: 10

Patch Set 3 : Improve documentation. #

Total comments: 1

Patch Set 4 : Rebase against top of tree. #

Patch Set 5 : Comments from asvitkine, rkaplow. #

Total comments: 17

Patch Set 6 : Comments from asvitkine. #

Total comments: 2

Patch Set 7 : Comments from asvitkine, round two. #

Patch Set 8 : Don't define FirstWebContentsProfiler on Android. Rebase against top of tree. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -2 lines) Patch
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h View 1 2 3 4 5 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
A chrome/browser/metrics/first_web_contents_profiler.h View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/metrics/first_web_contents_profiler.cc View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
erikchen
isherman: Please review. I am intentionally using a high bucket count for the histograms because ...
6 years ago (2014-11-26 00:02:22 UTC) #4
Ilya Sherman
https://codereview.chromium.org/760763002/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/760763002/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode253 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:253: base::TimeDelta::FromMinutes(2), 300); Could you clarify why you need such ...
6 years ago (2014-11-26 02:24:55 UTC) #5
erikchen
isherman: PTAL https://codereview.chromium.org/760763002/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/760763002/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode253 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:253: base::TimeDelta::FromMinutes(2), 300); On 2014/11/26 02:24:55, Ilya Sherman ...
6 years ago (2014-11-26 03:48:43 UTC) #9
Ilya Sherman
Thanks for moving the code. I'm ok with the delegation pattern that you used. https://codereview.chromium.org/760763002/diff/120001/chrome/browser/metrics/first_web_contents_profiler.cc ...
6 years ago (2014-11-26 04:12:26 UTC) #10
erikchen
isherman: PTAL https://codereview.chromium.org/760763002/diff/120001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/760763002/diff/120001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode14 chrome/browser/metrics/first_web_contents_profiler.cc:14: namespace { On 2014/11/26 04:12:26, Ilya Sherman ...
6 years ago (2014-11-26 18:24:43 UTC) #11
Ilya Sherman
+Alexei and Rob for any statistically-minded insights they can provide. https://codereview.chromium.org/760763002/diff/140001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/760763002/diff/140001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode29 ...
6 years ago (2014-11-26 22:04:08 UTC) #13
Alexei Svitkine (slow)
+1 to Ilya's concern. 781 buckets is still quite a lot. One of the problems ...
6 years ago (2014-11-26 22:24:59 UTC) #14
erikchen
isherman, asvitkine: Response requested. My response got so long that I made a Google Doc ...
6 years ago (2014-11-27 00:48:53 UTC) #15
Alexei Svitkine (slow)
Just chatted about this with Rob offline. Let me summarize our thoughts on this and ...
6 years ago (2014-11-27 22:06:18 UTC) #16
erikchen
Just had an offline discussion with asvitkine and rkaplow. We are going to release the ...
6 years ago (2014-12-03 18:16:52 UTC) #17
erikchen
asvitkine: Please review. If you only want to see the changes that arose from our ...
6 years ago (2014-12-03 19:15:15 UTC) #23
Alexei Svitkine (slow)
Generally looks good, some suggestion below. Thanks! https://codereview.chromium.org/760763002/diff/280001/chrome/browser/metrics/first_web_contents_profiler.cc File chrome/browser/metrics/first_web_contents_profiler.cc (right): https://codereview.chromium.org/760763002/diff/280001/chrome/browser/metrics/first_web_contents_profiler.cc#newcode66 chrome/browser/metrics/first_web_contents_profiler.cc:66: base::CurrentProcessInfo::CreationTime(); CreationTime() ...
6 years ago (2014-12-03 20:05:57 UTC) #24
erikchen
asvitkine: PTAL Diff patch set 6 against patch set 5 to see the changes. I ...
6 years ago (2014-12-03 21:38:41 UTC) #25
Alexei Svitkine (slow)
lgtm, will leave it up to you if you want to rename them or not ...
6 years ago (2014-12-03 22:09:33 UTC) #26
Ilya Sherman
https://codereview.chromium.org/760763002/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/760763002/diff/280001/tools/metrics/histograms/histograms.xml#newcode35395 tools/metrics/histograms/histograms.xml:35395: + name="Startup.Experimental.FirstWebContents.MainFrameLoad.ManyBuckets" On 2014/12/03 22:09:33, Alexei Svitkine wrote: > ...
6 years ago (2014-12-03 22:16:11 UTC) #27
erikchen
https://codereview.chromium.org/760763002/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/760763002/diff/280001/tools/metrics/histograms/histograms.xml#newcode35395 tools/metrics/histograms/histograms.xml:35395: + name="Startup.Experimental.FirstWebContents.MainFrameLoad.ManyBuckets" On 2014/12/03 22:16:11, Ilya Sherman wrote: > ...
6 years ago (2014-12-03 22:20:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760763002/310001
6 years ago (2014-12-03 22:21:14 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/39422)
6 years ago (2014-12-03 22:53:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760763002/310001
6 years ago (2014-12-03 22:58:07 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/39440)
6 years ago (2014-12-03 23:26:33 UTC) #36
erikchen
Looks like this code won't work on android very well: ../../chrome/browser/metrics/first_web_contents_profiler.cc:59: error: undefined reference to ...
6 years ago (2014-12-04 00:12:31 UTC) #37
erikchen
asvitkine: PTAL tl dr: I leave FirstWebContentsProfiler declared on all platforms, but only define it ...
6 years ago (2014-12-04 01:19:09 UTC) #38
Alexei Svitkine (slow)
lgtm if it passes the bots
6 years ago (2014-12-04 14:09:55 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760763002/330001
6 years ago (2014-12-04 18:33:55 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:330001)
6 years ago (2014-12-04 20:41:41 UTC) #42
commit-bot: I haz the power
6 years ago (2014-12-04 20:42:29 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c2cec4c53bd674b77a9cfdb662dd38a7dfff5347
Cr-Commit-Position: refs/heads/master@{#306884}

Powered by Google App Engine
This is Rietveld 408576698