Intent to Implement and Ship: toJSON for worker Performance and certain PerformanceEntries

43 views
Skip to first unread message

n...@chromium.org

unread,
Dec 5, 2017, 12:17:12 PM12/5/17
to blink-dev, Ilya Grigorik, Timothy Dresser
Contact emails

Spec

Summary
Ever since WebIDL was deprecated in favor of toJSON [1], the Performance and PerformanceEntry specs added a mandatory toJSON method. This method should just call the default toJSON operation [2].


The following interfaces will have toJSON added:
PerformanceResourceTiming
PerformanceLongTaskTiming
TaskAttributionTiming
Performance within Worker

Motivation
Allow developers to aggregate PerformanceEntries in JSON.

Interoperability risk: none
Firefox: Shipped
Edge: Public support
Safari: Shipped
Web developers: Positive

Compatibility risk: none

Ongoing technical constraints: none

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux,
Chrome OS, Android, and Android WebView)? Yes.

Is this feature fully tested by web-platform-tests?
There are some tests for existence, like external/wpt/resource-timing/idlharness.html and external/wpt/hr-time/idlharness.html
Tests for correctness are missing, I shall be adding some shortly. See for instance this issue: https://github.com/w3c/user-timing/issues/29

OWP launch tracking bug: none

Link to entry on the Chrome Platform Status

Requesting approval to ship?
Yes

Chris Harrelson

unread,
Dec 5, 2017, 6:41:52 PM12/5/17
to n...@chromium.org, blink-dev, Ilya Grigorik, Timothy Dresser
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/69a0b338-04c6-4950-9fca-60c88b921640%40chromium.org.

Yoav Weiss

unread,
Dec 6, 2017, 7:49:29 AM12/6/17
to Chris Harrelson, n...@chromium.org, blink-dev, Ilya Grigorik, Timothy Dresser
LGTM2

LGTM1

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw9W3jYgibphJOzbTFs_mQgFp83KMpJ_tdDvyzcx4_-j7g%40mail.gmail.com.

Rick Byers

unread,
Dec 8, 2017, 7:38:42 PM12/8/17
to Yoav Weiss, Chris Harrelson, n...@chromium.org, blink-dev, Ilya Grigorik, Timothy Dresser
LGTM3

LGTM2

LGTM1

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
Reply all
Reply to author
Forward
0 new messages