mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
LibWeb: Implement performance.mark and performance.clearMarks
This commit is contained in:
parent
89ebef9730
commit
cbe0901706
13 changed files with 341 additions and 0 deletions
14
Userland/Libraries/LibWeb/UserTiming/PerformanceMark.idl
Normal file
14
Userland/Libraries/LibWeb/UserTiming/PerformanceMark.idl
Normal file
|
@ -0,0 +1,14 @@
|
|||
#import <PerformanceTimeline/PerformanceEntry.idl>
|
||||
|
||||
// https://w3c.github.io/user-timing/#dom-performancemark
|
||||
[Exposed=(Window,Worker), UseNewAKString]
|
||||
interface PerformanceMark : PerformanceEntry {
|
||||
constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {});
|
||||
readonly attribute any detail;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/user-timing/#ref-for-dom-performancemarkoptions-1
|
||||
dictionary PerformanceMarkOptions {
|
||||
any detail;
|
||||
DOMHighResTimeStamp startTime;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue