blob: 04cd1afc73396905d5eeddaf24b404e52534f409 [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:05 +00001// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: JS Self-Profiling API (https://wicg.github.io/js-self-profiling/)
5
6[Exposed=Window]
7interface Profiler : EventTarget {
8 readonly attribute DOMHighResTimeStamp sampleInterval;
9 readonly attribute boolean stopped;
10
11 constructor(ProfilerInitOptions options);
12 Promise<ProfilerTrace> stop();
13};
14
15typedef DOMString ProfilerResource;
16
17dictionary ProfilerTrace {
18 required sequence<ProfilerResource> resources;
19 required sequence<ProfilerFrame> frames;
20 required sequence<ProfilerStack> stacks;
21 required sequence<ProfilerSample> samples;
22};
23
24dictionary ProfilerSample {
25 required DOMHighResTimeStamp timestamp;
26 unsigned long long stackId;
27};
28
29dictionary ProfilerStack {
30 unsigned long long parentId;
31 required unsigned long long frameId;
32};
33
34dictionary ProfilerFrame {
35 required DOMString name;
36 unsigned long long resourceId;
37 unsigned long long line;
38 unsigned long long column;
39};
40
41dictionary ProfilerInitOptions {
42 required DOMHighResTimeStamp sampleInterval;
43 required unsigned long maxBufferSize;
44};