mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:27:34 +00:00
LibWeb: Introduce Performance Timeline and its Performance functions
This commit is contained in:
parent
4c3f1481ea
commit
31b507afbf
16 changed files with 381 additions and 1 deletions
|
@ -1,12 +1,21 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
||||
#import <NavigationTiming/PerformanceTiming.idl>
|
||||
#import <PerformanceTimeline/PerformanceEntry.idl>
|
||||
|
||||
// https://www.w3.org/TR/performance-timeline/#dom-performanceentrylist
|
||||
typedef sequence<PerformanceEntry> PerformanceEntryList;
|
||||
|
||||
// https://w3c.github.io/hr-time/#sec-performance
|
||||
[Exposed=(Window, Worker)]
|
||||
[Exposed=(Window, Worker), UseNewAKString]
|
||||
interface Performance : EventTarget {
|
||||
DOMHighResTimeStamp now();
|
||||
readonly attribute DOMHighResTimeStamp timeOrigin;
|
||||
|
||||
readonly attribute PerformanceTiming timing;
|
||||
// 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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue