user-timing.idl (1181B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: User Timing (https://w3c.github.io/user-timing/) 5 6 dictionary PerformanceMarkOptions { 7 any detail; 8 DOMHighResTimeStamp startTime; 9 }; 10 11 dictionary PerformanceMeasureOptions { 12 any detail; 13 (DOMString or DOMHighResTimeStamp) start; 14 DOMHighResTimeStamp duration; 15 (DOMString or DOMHighResTimeStamp) end; 16 }; 17 18 partial interface Performance { 19 PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions = {}); 20 undefined clearMarks(optional DOMString markName); 21 PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions = {}, optional DOMString endMark); 22 undefined clearMeasures(optional DOMString measureName); 23 }; 24 25 [Exposed=(Window,Worker)] 26 interface PerformanceMark : PerformanceEntry { 27 constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {}); 28 readonly attribute any detail; 29 }; 30 31 [Exposed=(Window,Worker)] 32 interface PerformanceMeasure : PerformanceEntry { 33 readonly attribute any detail; 34 };