Performance Timeline API

This commit is contained in:
Fernando Jiménez Moreno 2017-08-01 14:57:55 +02:00
parent 24270f9357
commit 52348f1fcc
18 changed files with 599 additions and 7 deletions

View file

@ -7,6 +7,7 @@
*/
typedef double DOMHighResTimeStamp;
typedef sequence<PerformanceEntry> PerformanceEntryList;
[Exposed=(Window,Worker)]
interface Performance {
@ -17,3 +18,11 @@ interface Performance {
partial interface Performance {
DOMHighResTimeStamp now();
};
// https://w3c.github.io/performance-timeline/#extensions-to-the-performance-interface
partial interface Performance {
PerformanceEntryList getEntries();
PerformanceEntryList getEntriesByType(DOMString type);
PerformanceEntryList getEntriesByName(DOMString name,
optional DOMString type);
};