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

Issue 2652603002: service worker: Add UMA for navigation preload response timing. (Closed)

Created:
3 years, 11 months ago by falken
Modified:
3 years, 11 months ago
Reviewers:
jwd, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, asvitkine+watch_chromium.org, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

service worker: Add UMA for navigation preload response timing. This should help understand how nav preload is doing in the wild: whether it or sw startup is finishing first, and the timings for concurrent startup and preload, and how long we end up waiting for one after the other has finished. Added are: - ServiceWorker.NavigationPreload.ConcurrentTime: the time when both startup and preload are happening concurrently - ServiceWorker.NavigationPreload.FinishedBeforeStartWorker: indicates which one finished first - ServiceWorker.NavigationPreload.NavPreloadAfterSWStart: the time spent waiting for nav preload to finish, after sw start finished - ServiceWorker.NavigationPreload.SWStartAfterNavPreload: the reverse - ServiceWorker.NavigationPreload.ResponseTime: the time it took for the nav preload response to arrive In addition, there are suffixed histograms of the above to break down the timings in the two winner scenarios, and furthmore to see the breakdowns in the interesting situation of when a SW needed to be started up. BUG=661090 Review-Url: https://codereview.chromium.org/2652603002 Cr-Commit-Position: refs/heads/master@{#445965} Committed: https://chromium.googlesource.com/chromium/src/+/402d868859229cf42674996b82f3468922afc628

Patch Set 1 #

Patch Set 2 : ws #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : horo #

Patch Set 5 : patch for landing? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -12 lines) Patch
M content/browser/service_worker/service_worker_fetch_dispatcher.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 chunks +11 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.h View 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.cc View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics_unittest.cc View 1 chunk +146 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 2 chunks +39 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 2 chunks +27 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 chunks +105 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
falken
ptal
3 years, 11 months ago (2017-01-23 08:47:43 UTC) #3
horo
https://codereview.chromium.org/2652603002/diff/20001/content/browser/service_worker/service_worker_metrics.cc File content/browser/service_worker/service_worker_metrics.cc (right): https://codereview.chromium.org/2652603002/diff/20001/content/browser/service_worker/service_worker_metrics.cc#newcode856 content/browser/service_worker/service_worker_metrics.cc:856: const bool did_worker_startup = nit: |did_worker_startup_in_existing_process| may be better. ...
3 years, 11 months ago (2017-01-24 01:48:33 UTC) #7
danielmgriffin81
3 years, 11 months ago (2017-01-24 04:39:14 UTC) #9
falken
Thank you. https://codereview.chromium.org/2652603002/diff/20001/content/browser/service_worker/service_worker_metrics.cc File content/browser/service_worker/service_worker_metrics.cc (right): https://codereview.chromium.org/2652603002/diff/20001/content/browser/service_worker/service_worker_metrics.cc#newcode856 content/browser/service_worker/service_worker_metrics.cc:856: const bool did_worker_startup = On 2017/01/24 01:48:33, ...
3 years, 11 months ago (2017-01-24 04:41:18 UTC) #11
horo
lgtm
3 years, 11 months ago (2017-01-24 05:42:24 UTC) #12
falken
jwd: can you review histograms?
3 years, 11 months ago (2017-01-24 05:53:28 UTC) #14
jwd
lgtm
3 years, 11 months ago (2017-01-24 21:43:37 UTC) #19
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/2652603002/60001
3 years, 11 months ago (2017-01-24 22:38:18 UTC) #21
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/349227)
3 years, 11 months ago (2017-01-24 22:46:39 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/2652603002/60001
3 years, 11 months ago (2017-01-24 23:26:22 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/375327)
3 years, 11 months ago (2017-01-25 00:47:22 UTC) #27
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/2652603002/60001
3 years, 11 months ago (2017-01-25 00:58:32 UTC) #29
commit-bot: I haz the power
Failed to apply patch for content/browser/service_worker/service_worker_fetch_dispatcher.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-25 02:04:38 UTC) #31
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/2652603002/80001
3 years, 11 months ago (2017-01-25 03:04:06 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/219634)
3 years, 11 months ago (2017-01-25 04:42:06 UTC) #36
falken
On 2017/01/25 04:42:06, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-25 04:46:27 UTC) #37
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/2652603002/80001
3 years, 11 months ago (2017-01-25 04:47:02 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 06:12:33 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/402d868859229cf42674996b82f3...

Powered by Google App Engine
This is Rietveld 408576698