Victor Porof | 6e09692 | 2022-06-10 13:01:05 +0000 | [diff] [blame^] | 1 | // 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] |
| 7 | interface Profiler : EventTarget { |
| 8 | readonly attribute DOMHighResTimeStamp sampleInterval; |
| 9 | readonly attribute boolean stopped; |
| 10 | |
| 11 | constructor(ProfilerInitOptions options); |
| 12 | Promise<ProfilerTrace> stop(); |
| 13 | }; |
| 14 | |
| 15 | typedef DOMString ProfilerResource; |
| 16 | |
| 17 | dictionary ProfilerTrace { |
| 18 | required sequence<ProfilerResource> resources; |
| 19 | required sequence<ProfilerFrame> frames; |
| 20 | required sequence<ProfilerStack> stacks; |
| 21 | required sequence<ProfilerSample> samples; |
| 22 | }; |
| 23 | |
| 24 | dictionary ProfilerSample { |
| 25 | required DOMHighResTimeStamp timestamp; |
| 26 | unsigned long long stackId; |
| 27 | }; |
| 28 | |
| 29 | dictionary ProfilerStack { |
| 30 | unsigned long long parentId; |
| 31 | required unsigned long long frameId; |
| 32 | }; |
| 33 | |
| 34 | dictionary ProfilerFrame { |
| 35 | required DOMString name; |
| 36 | unsigned long long resourceId; |
| 37 | unsigned long long line; |
| 38 | unsigned long long column; |
| 39 | }; |
| 40 | |
| 41 | dictionary ProfilerInitOptions { |
| 42 | required DOMHighResTimeStamp sampleInterval; |
| 43 | required unsigned long maxBufferSize; |
| 44 | }; |