Skip to content

add performanceservertiming #984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11687,6 +11687,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
readonly responseEnd: number;
readonly responseStart: number;
readonly secureConnectionStart: number;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: number;
toJSON(): any;
Expand All @@ -11697,6 +11698,18 @@ declare var PerformanceResourceTiming: {
new(): PerformanceResourceTiming;
};

interface PerformanceServerTiming {
readonly description: string;
readonly duration: number;
readonly name: string;
toJSON(): any;
}

declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};

/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
Expand Down
13 changes: 13 additions & 0 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
readonly responseEnd: number;
readonly responseStart: number;
readonly secureConnectionStart: number;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: number;
toJSON(): any;
Expand All @@ -2601,6 +2602,18 @@ declare var PerformanceResourceTiming: {
new(): PerformanceResourceTiming;
};

interface PerformanceServerTiming {
readonly description: string;
readonly duration: number;
readonly name: string;
toJSON(): any;
}

declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};

interface PermissionStatusEventMap {
"change": Event;
}
Expand Down
12 changes: 12 additions & 0 deletions inputfiles/idl/Server Timing.widl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Exposed=(Window,Worker)]
interface PerformanceServerTiming {
readonly attribute DOMString name;
readonly attribute DOMHighResTimeStamp duration;
readonly attribute DOMString description;
[Default] object toJSON();
};

[Exposed=(Window,Worker)]
partial interface PerformanceResourceTiming {
readonly attribute FrozenArray<PerformanceServerTiming> serverTiming;
};
4 changes: 4 additions & 0 deletions inputfiles/idlSources.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@
"url": "https://www.w3.org/TR/selection-api/",
"title": "Selection"
},
{
"url": "https://www.w3.org/TR/server-timing/",
"title": "Server Timing"
},
{
"url": "https://w3c.github.io/ServiceWorker/",
"title": "Service Workers"
Expand Down