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

Issue 1184403003: Offer Resource Timing in workers (Closed)

Created:
5 years, 6 months ago by Kunihiko Sakamoto
Modified:
5 years, 6 months ago
Reviewers:
kinuko, tkent, Nate Chapin
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, Yoav Weiss, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Offer Resource Timing in workers This patch makes worker's performance timeline populated with resource timings. Most of the changes are plumbing for ResourceTimingInfo from ResourceFetcher in main thread to WorkerThreadableLoader in worker thread. BUG=465641 TEST=http/tests/workers,http/tests/serviceworker Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197707

Patch Set 1 : #

Total comments: 4

Patch Set 2 : comments addressed #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : method naming #

Total comments: 2

Patch Set 5 : comment fix #

Total comments: 4

Patch Set 6 : fetch/DEPS #

Total comments: 7

Patch Set 7 : comments addressed #

Patch Set 8 : inline CrossThreadCopierBase::copy() #

Total comments: 2

Patch Set 9 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -123 lines) Patch
M LayoutTests/http/tests/workers/resources/performance-timeline-worker.js View 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/fetch/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/fetch/RawResource.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/fetch/RawResource.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/ThreadableLoaderClient.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/loader/ThreadableLoaderClientWrapper.h View 1 2 3 4 chunks +24 lines, -0 lines 0 comments Download
M Source/core/loader/WorkerLoaderClientBridge.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/WorkerLoaderClientBridge.cpp View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/loader/WorkerLoaderClientBridgeSyncHelper.h View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M Source/core/loader/WorkerLoaderClientBridgeSyncHelper.cpp View 1 2 3 8 chunks +26 lines, -12 lines 0 comments Download
M Source/core/loader/WorkerThreadableLoader.h View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M Source/core/loader/WorkerThreadableLoader.cpp View 1 2 3 5 chunks +14 lines, -1 line 0 comments Download
M Source/core/timing/PerformanceBase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/timing/PerformanceResourceTiming.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/timing/ResourceTimingInfo.h View 1 chunk +0 lines, -95 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + Source/platform/network/ResourceTimingInfo.h View 1 2 3 4 5 6 7 2 chunks +29 lines, -1 line 0 comments Download
A Source/platform/network/ResourceTimingInfo.cpp View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
Kunihiko Sakamoto
5 years, 6 months ago (2015-06-19 09:40:46 UTC) #7
kinuko
Sorry for my slow review. The current plumbing is a bit unfortunate but this change ...
5 years, 6 months ago (2015-06-22 07:01:01 UTC) #8
Kunihiko Sakamoto
Thanks for the review. https://codereview.chromium.org/1184403003/diff/100001/Source/core/fetch/Resource.h File Source/core/fetch/Resource.h (right): https://codereview.chromium.org/1184403003/diff/100001/Source/core/fetch/Resource.h#newcode200 Source/core/fetch/Resource.h:200: virtual void reportResourceTiming(const ResourceTimingInfo&) { ...
5 years, 6 months ago (2015-06-22 09:49:56 UTC) #9
kinuko
Looking good. I'm still not 100% comfortable with the current plumbing, but we could probably ...
5 years, 6 months ago (2015-06-23 05:09:50 UTC) #10
Kunihiko Sakamoto
https://codereview.chromium.org/1184403003/diff/140001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1184403003/diff/140001/Source/core/fetch/ResourceFetcher.cpp#newcode816 Source/core/fetch/ResourceFetcher.cpp:816: resource->reportResourceTimingToWorker(*info); On 2015/06/23 05:09:50, kinuko wrote: > I'm wondering ...
5 years, 6 months ago (2015-06-23 06:47:34 UTC) #11
kinuko
Thanks, lgtm https://codereview.chromium.org/1184403003/diff/160001/Source/core/fetch/Resource.h File Source/core/fetch/Resource.h (right): https://codereview.chromium.org/1184403003/diff/160001/Source/core/fetch/Resource.h#newcode200 Source/core/fetch/Resource.h:200: // Reports resource timing to the worker ...
5 years, 6 months ago (2015-06-23 07:48:42 UTC) #12
Kunihiko Sakamoto
Nate, could you take a look? https://codereview.chromium.org/1184403003/diff/160001/Source/core/fetch/Resource.h File Source/core/fetch/Resource.h (right): https://codereview.chromium.org/1184403003/diff/160001/Source/core/fetch/Resource.h#newcode200 Source/core/fetch/Resource.h:200: // Reports resource ...
5 years, 6 months ago (2015-06-23 08:05:08 UTC) #13
Nate Chapin
LGTM, though I don't think you have approval for Source/platform/ yet? https://codereview.chromium.org/1184403003/diff/180001/Source/core/loader/ThreadableLoaderClient.h File Source/core/loader/ThreadableLoaderClient.h (right): ...
5 years, 6 months ago (2015-06-23 18:17:17 UTC) #14
Kunihiko Sakamoto
+tkent@ Kent-san, could you take a look for Source/platform? This patch moves ResourceTimingInfo to platform/ ...
5 years, 6 months ago (2015-06-24 01:31:32 UTC) #16
tkent
Looking. On 2015/06/24 01:31:32, Kunihiko Sakamoto wrote: > Kent-san, could you take a look for ...
5 years, 6 months ago (2015-06-24 01:51:50 UTC) #17
tkent
https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h File Source/platform/CrossThreadCopier.h (right): https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h#newcode140 Source/platform/CrossThreadCopier.h:140: template<> struct CrossThreadCopierBase<false, false, false, ResourceTimingInfo> { Please move ...
5 years, 6 months ago (2015-06-24 02:03:58 UTC) #18
Kunihiko Sakamoto
https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h File Source/platform/CrossThreadCopier.h (right): https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h#newcode140 Source/platform/CrossThreadCopier.h:140: template<> struct CrossThreadCopierBase<false, false, false, ResourceTimingInfo> { On 2015/06/24 ...
5 years, 6 months ago (2015-06-24 02:47:50 UTC) #19
Kunihiko Sakamoto
https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h File Source/platform/CrossThreadCopier.h (right): https://codereview.chromium.org/1184403003/diff/200001/Source/platform/CrossThreadCopier.h#newcode140 Source/platform/CrossThreadCopier.h:140: template<> struct CrossThreadCopierBase<false, false, false, ResourceTimingInfo> { On 2015/06/24 ...
5 years, 6 months ago (2015-06-24 02:58:29 UTC) #20
tkent
lgtm https://codereview.chromium.org/1184403003/diff/240001/Source/platform/network/ResourceTimingInfo.cpp File Source/platform/network/ResourceTimingInfo.cpp (right): https://codereview.chromium.org/1184403003/diff/240001/Source/platform/network/ResourceTimingInfo.cpp#newcode26 Source/platform/network/ResourceTimingInfo.cpp:26: OwnPtr<CrossThreadResourceTimingInfoData> data = adoptPtr(new CrossThreadResourceTimingInfoData); Remove one space ...
5 years, 6 months ago (2015-06-24 03:04:59 UTC) #21
Kunihiko Sakamoto
Thanks for the review! https://codereview.chromium.org/1184403003/diff/240001/Source/platform/network/ResourceTimingInfo.cpp File Source/platform/network/ResourceTimingInfo.cpp (right): https://codereview.chromium.org/1184403003/diff/240001/Source/platform/network/ResourceTimingInfo.cpp#newcode26 Source/platform/network/ResourceTimingInfo.cpp:26: OwnPtr<CrossThreadResourceTimingInfoData> data = adoptPtr(new CrossThreadResourceTimingInfoData); ...
5 years, 6 months ago (2015-06-24 04:10:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184403003/260001
5 years, 6 months ago (2015-06-24 04:11:16 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60506)
5 years, 6 months ago (2015-06-24 05:29:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184403003/260001
5 years, 6 months ago (2015-06-24 05:37:09 UTC) #29
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 06:19:02 UTC) #30
Message was sent while issue was closed.
Committed patchset #9 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197707

Powered by Google App Engine
This is Rietveld 408576698