- From: Philippe Le Hegaret <plh@w3.org>
- Date: Mon, 09 Mar 2015 17:30:26 -0400
- To: public-web-perf <public-web-perf@w3.org>
Ilya and I moved the definition of Performance in performance timeline
(instead of Navigation Timing) and added support for Workers.
The IDL now says:
[[
[Exposed=(Window,Worker)]
interfacePerformanceEntry {
readonly attributeDOMString name <https://w3c.github.io/performance-timeline/#widl-PerformanceEntry-name>;
readonly attributeDOMString entryType <https://w3c.github.io/performance-timeline/#widl-PerformanceEntry-entryType>;
readonly attributeDOMString startTime <https://w3c.github.io/performance-timeline/#widl-PerformanceEntry-startTime>;
readonly attributeDOMString duration <https://w3c.github.io/performance-timeline/#widl-PerformanceEntry-duration>;
serializer ={attribute};
};
[Exposed=(Window,Worker)]
interfacePerformance :EventTarget {
|PerformanceEntryList| <https://w3c.github.io/performance-timeline/#idl-def-PerformanceEntryList> getEntries <https://w3c.github.io/performance-timeline/#widl-Performance-getEntries-PerformanceEntryList> ();
|PerformanceEntryList| <https://w3c.github.io/performance-timeline/#idl-def-PerformanceEntryList> getEntriesByType <https://w3c.github.io/performance-timeline/#widl-Performance-getEntriesByType-PerformanceEntryList-DOMString-entryType> (DOMString entryType);
|PerformanceEntryList| <https://w3c.github.io/performance-timeline/#idl-def-PerformanceEntryList> getEntriesByName <https://w3c.github.io/performance-timeline/#widl-Performance-getEntriesByName-PerformanceEntryList-DOMString-name-DOMString-entryType> (DOMString name,optionalDOMString entryType);
};
[NoInterfaceObject, Exposed=(Window,Worker)]
interfaceGlobalPerformance {
[Replaceable]
readonly attribute|Performance| <https://w3c.github.io/performance-timeline/#idl-def-Performance> performance <https://w3c.github.io/performance-timeline/#widl-GlobalPerformance-performance>;
};
Window implements|GlobalPerformance| <https://w3c.github.io/performance-timeline/#idl-def-GlobalPerformance>;
WorkerGlobalScope implements|GlobalPerformance| <https://w3c.github.io/performance-timeline/#idl-def-GlobalPerformance>;
]]
https://w3c.github.io/performance-timeline/
Hopefully, we got it, otherwise send comments.
Philippe
Received on Monday, 9 March 2015 21:30:28 UTC