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

Issue 1795863006: service worker: Attribute purpose to start worker attempts for UMA (Closed)

Created:
4 years, 9 months ago by falken
Modified:
4 years, 9 months ago
CC:
asvitkine+watch_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, harkness+watch_chromium.org, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, maxbogue+watch_chromium.org, michaeln, mlamouri+watch-notifications_chromium.org, mvanouwerkerk+watch_chromium.org, nhiroki, Peter Beverloo, plaree+watch_chromium.org, serviceworker-reviews, tim+watch_chromium.org, tzik, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

service worker: Attribute purpose to start worker attempts for UMA We want to see whether certain start worker purposes are timing out more than others. # Skip presubmit due to crbug.com/595198, presubmit passes locally NOPRESUBMIT=true BUG=559001 Committed: https://crrev.com/98a214071cb9542f09bf62250c5c7f7637bfa9c5 Cr-Commit-Position: refs/heads/master@{#381391}

Patch Set 1 #

Total comments: 7

Patch Set 2 : review comments #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : review comments and fix #

Patch Set 5 : patch for landing? #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -98 lines) Patch
M content/browser/background_sync/background_sync_manager.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/geofencing/geofencing_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/navigator_connect/navigator_connect_context_impl.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_router.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 7 chunks +8 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 chunks +23 lines, -0 lines 1 comment Download
M content/browser/service_worker/service_worker_handle_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.h View 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.cc View 4 chunks +25 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 10 chunks +13 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 chunks +9 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 13 chunks +36 lines, -27 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 31 chunks +75 lines, -40 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 3 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 28 (10 generated)
falken
PTAL
4 years, 9 months ago (2016-03-14 08:29:26 UTC) #2
nhiroki
Looks good. Added some minor comments. https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode26 content/browser/service_worker/service_worker_fetch_dispatcher.cc:26: case RESOURCE_TYPE_LAST_TYPE: Maybe ...
4 years, 9 months ago (2016-03-15 02:18:14 UTC) #3
nhiroki
https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_version.h#newcode169 content/browser/service_worker/service_worker_version.h:169: ServiceWorkerMetrics::EventType::UNKNOWN); On 2016/03/15 02:18:14, nhiroki wrote: > When is ...
4 years, 9 months ago (2016-03-15 02:27:49 UTC) #4
falken
Thank you, PTAL https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/1795863006/diff/1/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode26 content/browser/service_worker/service_worker_fetch_dispatcher.cc:26: case RESOURCE_TYPE_LAST_TYPE: On 2016/03/15 02:18:14, nhiroki ...
4 years, 9 months ago (2016-03-15 05:15:53 UTC) #5
nhiroki
lgtm
4 years, 9 months ago (2016-03-15 06:27:02 UTC) #6
falken
Adding owners: johnme: notifications/ and push_messaging/ mek: geofencing/ and navigator_connect/ jkarlin: background_sync/ isherman: histograms Thank ...
4 years, 9 months ago (2016-03-15 07:12:14 UTC) #8
jkarlin
background_sync/ lgtm
4 years, 9 months ago (2016-03-15 14:55:52 UTC) #9
Marijn Kruisselbrink
> mek: geofencing/ and navigator_connect/ LGTM
4 years, 9 months ago (2016-03-15 18:53:04 UTC) #10
johnme
lgtm content/browser/notifications/ and content/browser/push_messaging/
4 years, 9 months ago (2016-03-15 19:39:02 UTC) #11
Ilya Sherman
metrics lgtm https://codereview.chromium.org/1795863006/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1795863006/diff/20001/tools/metrics/histograms/histograms.xml#newcode80163 tools/metrics/histograms/histograms.xml:80163: + <int value="14" label="UNKOWN"/> Optional nit: Mebbe ...
4 years, 9 months ago (2016-03-16 00:52:44 UTC) #12
falken
Thanks all. https://codereview.chromium.org/1795863006/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1795863006/diff/20001/tools/metrics/histograms/histograms.xml#newcode80163 tools/metrics/histograms/histograms.xml:80163: + <int value="14" label="UNKOWN"/> On 2016/03/16 00:52:44, ...
4 years, 9 months ago (2016-03-16 02:07:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1795863006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1795863006/60001
4 years, 9 months ago (2016-03-16 02:08:06 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157443)
4 years, 9 months ago (2016-03-16 02:18:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1795863006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1795863006/80001
4 years, 9 months ago (2016-03-16 02:30:06 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-16 05:21:48 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/98a214071cb9542f09bf62250c5c7f7637bfa9c5 Cr-Commit-Position: refs/heads/master@{#381391}
4 years, 9 months ago (2016-03-16 05:24:58 UTC) #26
Marijn Kruisselbrink
https://codereview.chromium.org/1795863006/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/1795863006/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode98 content/browser/service_worker/service_worker_fetch_dispatcher.cc:98: version_->StartRequest(ServiceWorkerMetrics::EventType::FETCH, Bit late of a comment, but it seems ...
4 years, 9 months ago (2016-03-16 23:33:41 UTC) #27
falken
4 years, 9 months ago (2016-03-17 01:37:37 UTC) #28
Message was sent while issue was closed.
On 2016/03/16 23:33:41, Marijn Kruisselbrink wrote:
>
https://codereview.chromium.org/1795863006/diff/80001/content/browser/service...
> File content/browser/service_worker/service_worker_fetch_dispatcher.cc
(right):
> 
>
https://codereview.chromium.org/1795863006/diff/80001/content/browser/service...
> content/browser/service_worker/service_worker_fetch_dispatcher.cc:98:
> version_->StartRequest(ServiceWorkerMetrics::EventType::FETCH,
> Bit late of a comment, but it seems weird that you marked EventType::FETCH as
> deprecated (at least in comments) while it is still being used here, and in
> histograms as the actual event type for
ServiceWorkerMetrics::RecordEventTimeout
> and RecordEventHandledRatio (which only records the ratio for ::FETCH).

Yeah I should have made a TODO or comment here about that. I intend to clean
those up in future patches. It's deprecated in the sense that new code shouldn't
use it.

Powered by Google App Engine
This is Rietveld 408576698