2022-02-15 16:10:51 -03:00
|
|
|
#import <DOM/EventTarget.idl>
|
2023-03-06 20:56:20 -03:00
|
|
|
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
2025-07-22 13:03:34 -03:00
|
|
|
#import <NavigationTiming/PerformanceExtensions.idl>
|
2024-08-01 22:50:52 -03:00
|
|
|
#import <NavigationTiming/PerformanceNavigation.idl>
|
2022-02-15 16:10:51 -03:00
|
|
|
#import <NavigationTiming/PerformanceTiming.idl>
|
2023-03-22 16:12:57 -03:00
|
|
|
#import <PerformanceTimeline/PerformanceEntry.idl>
|
2023-03-23 14:07:52 -03:00
|
|
|
#import <UserTiming/PerformanceMark.idl>
|
2023-05-13 09:34:28 -03:00
|
|
|
#import <UserTiming/PerformanceMeasure.idl>
|
2023-03-22 16:12:57 -03:00
|
|
|
|
|
|
|
|
// https://www.w3.org/TR/performance-timeline/#dom-performanceentrylist
|
|
|
|
|
typedef sequence<PerformanceEntry> PerformanceEntryList;
|
2022-02-15 16:10:51 -03:00
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://w3c.github.io/hr-time/#sec-performance
|
2023-09-02 11:00:01 -03:00
|
|
|
[Exposed=(Window, Worker)]
|
2020-09-29 13:19:18 -03:00
|
|
|
interface Performance : EventTarget {
|
2023-03-06 20:56:20 -03:00
|
|
|
DOMHighResTimeStamp now();
|
|
|
|
|
readonly attribute DOMHighResTimeStamp timeOrigin;
|
2024-07-16 18:49:23 -03:00
|
|
|
[Default] object toJSON();
|
2021-01-18 11:06:13 -03:00
|
|
|
|
2023-03-23 14:07:52 -03:00
|
|
|
// https://w3c.github.io/user-timing/#extensions-performance-interface
|
|
|
|
|
// "User Timing" extensions to the Performance interface
|
|
|
|
|
PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions = {});
|
|
|
|
|
undefined clearMarks(optional DOMString markName);
|
2023-05-13 09:34:28 -03:00
|
|
|
PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions = {}, optional DOMString endMark);
|
|
|
|
|
undefined clearMeasures(optional DOMString measureName);
|
2023-03-23 14:07:52 -03:00
|
|
|
|
2025-02-26 12:51:05 -03:00
|
|
|
// https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
|
|
|
|
|
// "Resource Timing" extensions to the Performance interface
|
|
|
|
|
undefined clearResourceTimings();
|
|
|
|
|
undefined setResourceTimingBufferSize(unsigned long maxSize);
|
|
|
|
|
attribute EventHandler onresourcetimingbufferfull;
|
|
|
|
|
|
2023-03-22 16:12:57 -03:00
|
|
|
// https://www.w3.org/TR/performance-timeline/#extensions-to-the-performance-interface
|
|
|
|
|
// "Performance Timeline" extensions to the Performance interface
|
|
|
|
|
PerformanceEntryList getEntries();
|
|
|
|
|
PerformanceEntryList getEntriesByType(DOMString type);
|
|
|
|
|
PerformanceEntryList getEntriesByName(DOMString name, optional DOMString type);
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|