1// GENERATED CONTENT - DO NOT EDIT 2// Content was automatically extracted by Reffy into webref 3// (https://github.com/w3c/webref) 4// Source: Performance Timeline Level 2 (https://w3c.github.io/performance-timeline/) 5 6partial interface Performance { 7 PerformanceEntryList getEntries (); 8 PerformanceEntryList getEntriesByType (DOMString type); 9 PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type); 10}; 11typedef sequence<PerformanceEntry> PerformanceEntryList; 12 13[Exposed=(Window,Worker)] 14interface PerformanceEntry { 15 readonly attribute DOMString name; 16 readonly attribute DOMString entryType; 17 readonly attribute DOMHighResTimeStamp startTime; 18 readonly attribute DOMHighResTimeStamp duration; 19 [Default] object toJSON(); 20}; 21 22callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries, 23 PerformanceObserver observer, 24 optional PerformanceObserverCallbackOptions options = {}); 25[Exposed=(Window,Worker)] 26interface PerformanceObserver { 27 constructor(PerformanceObserverCallback callback); 28 undefined observe (optional PerformanceObserverInit options = {}); 29 undefined disconnect (); 30 PerformanceEntryList takeRecords(); 31 [SameObject] static readonly attribute FrozenArray<DOMString> supportedEntryTypes; 32}; 33 34dictionary PerformanceObserverCallbackOptions { 35 unsigned long long droppedEntriesCount; 36}; 37 38dictionary PerformanceObserverInit { 39 sequence<DOMString> entryTypes; 40 DOMString type; 41 boolean buffered; 42}; 43 44[Exposed=(Window,Worker)] 45interface PerformanceObserverEntryList { 46 PerformanceEntryList getEntries(); 47 PerformanceEntryList getEntriesByType (DOMString type); 48 PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type); 49}; 50