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

Issue 1146253004: Add workerReady timing for ServiceWorker controlled requests [2/3] (Closed)

Created:
5 years, 6 months ago by Kunihiko Sakamoto
Modified:
5 years, 6 months ago
Reviewers:
Tom Sepez, jam, mmenke, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add workerReady timing for ServiceWorker controlled requests [2/3] To make ServiceWorker startup time measureable, in addition to workerStart, we need another timing "workerReady" which is the point ServiceWorker finished starting and is ready to handle events. This timing is marked in DidPrepareFetchEvent, as well as send_start, but unlike send_start, it's not cleared by request job restarts. [1/3] https://codereview.chromium.org/1149273003/ [2/3] THIS [3/3] https://codereview.chromium.org/1166953007/ BUG=465640 TEST=all existing tests should pass Committed: https://crrev.com/3c1792243ab063896e26640658959f164d38c14f Cr-Commit-Position: refs/heads/master@{#333240}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -73 lines) Patch
M content/browser/loader/resource_loader.cc View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.h View 1 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.cc View 1 2 chunks +6 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 1 2 chunks +2 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 3 chunks +13 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 3 chunks +2 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 3 chunks +15 lines, -15 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Kunihiko Sakamoto
content/browser/service_worker: horo@ content/browser/loader: mmenke@ content/{child, public/common}: jam@ content/common/resource_messages.h: tsepez@ PTAL, thanks!
5 years, 6 months ago (2015-06-05 07:58:26 UTC) #2
horo
lgtm
5 years, 6 months ago (2015-06-05 08:10:57 UTC) #3
mmenke
loader/ LGTM https://codereview.chromium.org/1146253004/diff/1/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1146253004/diff/1/content/browser/loader/resource_loader.cc#newcode72 content/browser/loader/resource_loader.cc:72: &response->head.service_worker_ready_time); Hrm...Wonder if we should just pass ...
5 years, 6 months ago (2015-06-05 15:24:02 UTC) #4
Tom Sepez
Messages LGTM. https://codereview.chromium.org/1146253004/diff/1/content/browser/service_worker/service_worker_controllee_request_handler.cc File content/browser/service_worker/service_worker_controllee_request_handler.cc (right): https://codereview.chromium.org/1146253004/diff/1/content/browser/service_worker/service_worker_controllee_request_handler.cc#newcode68 content/browser/service_worker/service_worker_controllee_request_handler.cc:68: // Save worker timeings of the first ...
5 years, 6 months ago (2015-06-05 15:33:07 UTC) #5
jam
lgtm
5 years, 6 months ago (2015-06-05 15:39:23 UTC) #6
Kunihiko Sakamoto
Horo-san, can you take another look at service_worker/? https://codereview.chromium.org/1146253004/diff/1/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1146253004/diff/1/content/browser/loader/resource_loader.cc#newcode72 content/browser/loader/resource_loader.cc:72: &response->head.service_worker_ready_time); ...
5 years, 6 months ago (2015-06-08 01:51:44 UTC) #7
mmenke
Loader still LGTM, just two nits. https://codereview.chromium.org/1146253004/diff/20001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1146253004/diff/20001/content/browser/loader/resource_loader.cc#newcode66 content/browser/loader/resource_loader.cc:66: handler->GetExtraResponseInfo(&response->head); nit: Should ...
5 years, 6 months ago (2015-06-08 02:08:42 UTC) #8
Kunihiko Sakamoto
https://codereview.chromium.org/1146253004/diff/20001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1146253004/diff/20001/content/browser/loader/resource_loader.cc#newcode66 content/browser/loader/resource_loader.cc:66: handler->GetExtraResponseInfo(&response->head); On 2015/06/08 02:08:42, mmenke wrote: > nit: Should ...
5 years, 6 months ago (2015-06-08 02:25:57 UTC) #9
horo
> Horo-san, can you take another look at service_worker/? lgtm.
5 years, 6 months ago (2015-06-08 03:25:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1146253004/40001
5 years, 6 months ago (2015-06-08 03:57:51 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-08 04:33:28 UTC) #14
commit-bot: I haz the power
5 years, 6 months ago (2015-06-08 04:34:23 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c1792243ab063896e26640658959f164d38c14f
Cr-Commit-Position: refs/heads/master@{#333240}

Powered by Google App Engine
This is Rietveld 408576698