RESOLVED FIXED 167717
Support Performance API (performance.now(), UserTiming) in Workers
https://bugs.webkit.org/show_bug.cgi?id=167717
Summary Support Performance API (performance.now(), UserTiming) in Workers
Joseph Pecoraro
Reported 2017-02-01 17:07:35 PST
Summary: Support Performance API (performance.now(), UserTiming) in Workers Level 2 of these specifications brings support to workers.
Attachments
[PATCH] Proposed Fix (75.00 KB, patch)
2017-02-01 17:16 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (76.44 KB, patch)
2017-02-01 17:56 PST, Joseph Pecoraro
rniwa: review+
[PATCH] Additional Changes (13.23 KB, patch)
2017-02-02 11:48 PST, Joseph Pecoraro
no flags
[PATCH] For Bots (90.16 KB, patch)
2017-02-02 12:01 PST, Joseph Pecoraro
buildbot: commit-queue-
Archive of layout-test-results from ews103 for mac-elcapitan (789.75 KB, application/zip)
2017-02-02 13:09 PST, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-elcapitan (1.46 MB, application/zip)
2017-02-02 13:18 PST, Build Bot
no flags
[PATCH] For Bots (90.07 KB, patch)
2017-02-02 13:19 PST, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-02-01 17:16:05 PST
Created attachment 300374 [details] [PATCH] Proposed Fix
Sam Weinig
Comment 2 2017-02-01 17:55:46 PST
Comment on attachment 300374 [details] [PATCH] Proposed Fix Can we use WTF's Seconds class instead of double for all this timeOrigin passing?
Joseph Pecoraro
Comment 3 2017-02-01 17:56:02 PST
Created attachment 300377 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 4 2017-02-01 17:56:33 PST
(In reply to comment #2) > Comment on attachment 300374 [details] > [PATCH] Proposed Fix > > Can we use WTF's Seconds class instead of double for all this timeOrigin > passing? Sure! I'll look into that and put up another patch.
Ryosuke Niwa
Comment 5 2017-02-01 20:48:43 PST
Comment on attachment 300377 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=300377&action=review restrictedMarkFunction in PerformanceUserTiming.cpp is not thread safe. Please fix that before landing this patch. > Source/WebCore/page/GlobalPerformance.idl:2 > - * Copyright (C) 2012 Intel Inc. All rights reserved. > + * Copyright (C) 2017 Apple Inc. All rights reserved. I don't think we can get rid of Intel's copyright.
Joseph Pecoraro
Comment 6 2017-02-02 11:44:36 PST
Comment on attachment 300377 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=300377&action=review >> Source/WebCore/page/GlobalPerformance.idl:2 >> + * Copyright (C) 2017 Apple Inc. All rights reserved. > > I don't think we can get rid of Intel's copyright. That is because my git diff thinks we are copying this file from PerformanceMeasure.idl, but we aren't. This is a new file with WebIDL just copied from the spec (extracted from Performance.idl).
Joseph Pecoraro
Comment 7 2017-02-02 11:48:14 PST
Created attachment 300426 [details] [PATCH] Additional Changes These additional changes (mostly tests and a minor tweak to User Timing for Workers) came up because of some comments rniwa raised in person. I haven't forgotten about moving to MonotonicTime / Seconds classes. I have that patch right now but I'll put it up for review as a follow-up since it reaches into more and more places not relevant for this bug. Also, converting everything related to Performance APIs at once will be nice.
Joseph Pecoraro
Comment 8 2017-02-02 12:01:50 PST
Created attachment 300428 [details] [PATCH] For Bots
Build Bot
Comment 9 2017-02-02 13:09:13 PST
Comment on attachment 300428 [details] [PATCH] For Bots Attachment 300428 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2993036 New failing tests: imported/w3c/web-platform-tests/user-timing/test_user_timing_mark_and_measure_exception_when_invoke_with_timing_attributes.html
Build Bot
Comment 10 2017-02-02 13:09:16 PST
Created attachment 300438 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 11 2017-02-02 13:18:24 PST
Comment on attachment 300428 [details] [PATCH] For Bots Attachment 300428 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2993051 New failing tests: imported/w3c/web-platform-tests/user-timing/test_user_timing_mark_and_measure_exception_when_invoke_with_timing_attributes.html
Build Bot
Comment 12 2017-02-02 13:18:27 PST
Created attachment 300441 [details] Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Joseph Pecoraro
Comment 13 2017-02-02 13:19:27 PST
Created attachment 300442 [details] [PATCH] For Bots
Ryosuke Niwa
Comment 14 2017-02-02 13:44:01 PST
Comment on attachment 300426 [details] [PATCH] Additional Changes Sure, this change looks good to me.
Joseph Pecoraro
Comment 15 2017-02-02 14:10:18 PST
Note You need to log in before you can comment on or make changes to this bug.