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

Issue 1100813004: Offer User Timing in workers (Closed)

Created:
5 years, 8 months ago by Kunihiko Sakamoto
Modified:
5 years, 6 months ago
CC:
blink-reviews, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Offer User Timing in workers This patch makes User Timing available in Dedicated / Shared / Service Workers behind the experimental flag. The getEntries* methods [1] and User Timing extension [2] of the Performance interface are added to WrokerPerformance. In order to make the new methods available from workers, PerformanceBase class is introduced as a common base class of Performance and WorkerPerformance. [1] https://w3c.github.io/performance-timeline/#the-performance-interface [2] https://w3c.github.io/user-timing/#extensions-performance-interface BUG=465638, 465643 TEST=http/tests/workers,http/tests/serviceworker Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196724

Patch Set 1 : #

Total comments: 8

Patch Set 2 : testharness.js-based test #

Patch Set 3 : common test for all workers #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -483 lines) Patch
A + LayoutTests/http/tests/serviceworker/performance-timeline.html View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
A LayoutTests/http/tests/workers/resources/performance-timeline-worker.js View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/workers/shared-worker-performance-timeline.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/workers/worker-performance-timeline.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/timing/Performance.h View 1 2 3 2 chunks +3 lines, -58 lines 0 comments Download
M Source/core/timing/Performance.cpp View 3 chunks +3 lines, -275 lines 0 comments Download
A + Source/core/timing/PerformanceBase.h View 1 2 3 4 chunks +14 lines, -28 lines 0 comments Download
A + Source/core/timing/PerformanceBase.cpp View 11 chunks +29 lines, -62 lines 0 comments Download
M Source/core/timing/PerformanceUserTiming.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/timing/PerformanceUserTiming.cpp View 4 chunks +36 lines, -31 lines 0 comments Download
M Source/modules/performance/WorkerGlobalScopePerformance.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/performance/WorkerGlobalScopePerformance.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/performance/WorkerPerformance.h View 1 2 chunks +9 lines, -6 lines 0 comments Download
M Source/modules/performance/WorkerPerformance.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M Source/modules/performance/WorkerPerformance.idl View 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
Kunihiko Sakamoto
Could you take a look?
5 years, 6 months ago (2015-06-04 07:21:19 UTC) #6
kinuko
Looking good! https://codereview.chromium.org/1100813004/diff/80001/LayoutTests/fast/workers/resources/worker-performance.js File LayoutTests/fast/workers/resources/worker-performance.js (right): https://codereview.chromium.org/1100813004/diff/80001/LayoutTests/fast/workers/resources/worker-performance.js#newcode15 LayoutTests/fast/workers/resources/worker-performance.js:15: } Could we also importScript LayoutTests/resources/testharness.js here? ...
5 years, 6 months ago (2015-06-04 08:21:23 UTC) #7
Kunihiko Sakamoto
https://codereview.chromium.org/1100813004/diff/80001/LayoutTests/fast/workers/resources/worker-performance.js File LayoutTests/fast/workers/resources/worker-performance.js (right): https://codereview.chromium.org/1100813004/diff/80001/LayoutTests/fast/workers/resources/worker-performance.js#newcode15 LayoutTests/fast/workers/resources/worker-performance.js:15: } On 2015/06/04 08:21:22, kinuko wrote: > Could we ...
5 years, 6 months ago (2015-06-05 03:43:56 UTC) #8
kinuko
lgtm
5 years, 6 months ago (2015-06-05 05:52:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100813004/120001
5 years, 6 months ago (2015-06-05 05:53:54 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/34672)
5 years, 6 months ago (2015-06-05 05:59:49 UTC) #13
kinuko
I think you'll need lgtm's for modules/performance.
5 years, 6 months ago (2015-06-05 06:00:03 UTC) #14
Kunihiko Sakamoto
+mkwst@ for modules
5 years, 6 months ago (2015-06-05 07:33:36 UTC) #16
Mike West
Was there an intent to implement/ship? I'd also prefer that you get one of the ...
5 years, 6 months ago (2015-06-07 14:04:30 UTC) #18
Kunihiko Sakamoto
+tonyg@ I think simonjam@ is no longer working on Chrome. tonyg@, could you review this? ...
5 years, 6 months ago (2015-06-08 08:31:56 UTC) #20
Mike West
On 2015/06/08 at 08:31:56, ksakamoto wrote: > +tonyg@ > > I think simonjam@ is no ...
5 years, 6 months ago (2015-06-08 09:00:05 UTC) #21
Kunihiko Sakamoto
> If you're close to shipping, please send an Intent to Implement and Ship. If ...
5 years, 6 months ago (2015-06-09 00:58:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100813004/120001
5 years, 6 months ago (2015-06-09 00:59:24 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/46860) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 6 months ago (2015-06-09 01:03:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100813004/140001
5 years, 6 months ago (2015-06-09 01:21:30 UTC) #29
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 02:59:33 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196724

Powered by Google App Engine
This is Rietveld 408576698