PerformanceScriptTiming Class
A script that ran 5 milliseconds or more in a long animation frame (https://w3c.github.io/long-animation-frames/#sec-PerformanceScriptTiming).
public sealed class PerformanceScriptTiming : PerformanceEntry- Inheritance
PerformanceEntryPerformanceScriptTiming
Properties
| Name | Description |
|---|---|
| Duration | Gets the duration of the script, including the microtasks that ran after it. |
| EntryType | Gets script. |
| ExecutionStart | Gets the time the script started to execute (after its compilation), or 0. |
| ForcedLayoutDuration | Gets the time spent updating the layout synchronously while the script ran: always 0, the library does not measure it. |
| ForcedStyleAndLayoutDuration | Gets the time spent recalculating the styles and updating the layout synchronously while the script ran: always 0, the library does not measure it. |
| ForcedStyleDuration | Gets the time spent recalculating the styles synchronously while the script ran: always 0, the library does not measure it. |
| Invoker | Gets what invoked the script: the URL of a script block, the target and the type of an event (e.g. IMG#id.onload), the name of a callback (e.g. FrameRequestCallback, TimerHandler:setTimeout), or the promise of a reaction (e.g. Promise.then). |
| InvokerType | Gets how the script was invoked: a script block, an event listener, a callback or a promise reaction. |
| Name | Gets script. |
| PauseDuration | Gets the time the script was paused by a synchronous operation (e.g. a synchronous XMLHttpRequest). |
| SourceCharPosition | Gets the position (0-based) of the code in its script, or -1. |
| SourceColumn | Gets the column (1-based) of the code in its script, or -1. |
| SourceFunctionName | Gets the name of the function of a callback or an event listener, or the empty string. |
| SourceLine | Gets the line (1-based) of the code in its script, or -1. |
| SourceUrl | Gets the URL of the script that defines the code, or the empty string. |
| StartTime | Gets the time the script started, in milliseconds relative to the time origin of the window of the long animation frame. |
| Window | Gets the window of the realm of the script, or null when its document is no longer fully active. |
| WindowAttribution | Gets the relation between the window of the script and the window of the long animation frame. |
Duration
LongAnimationFrameTiming.csGets the duration of the script, including the microtasks that ran after it.
public new double Duration { get; }Property value
See also
EntryType
LongAnimationFrameTiming.csExecutionStart
LongAnimationFrameTiming.csGets the time the script started to execute (after its compilation), or 0.
public double ExecutionStart { get; }ForcedLayoutDuration
LongAnimationFrameTiming.csGets the time spent updating the layout synchronously while the script ran: always 0, the library does not measure it.
public double ForcedLayoutDuration { get; }ForcedStyleAndLayoutDuration
LongAnimationFrameTiming.csGets the time spent recalculating the styles and updating the layout synchronously while the script ran: always 0, the library does not measure it.
public double ForcedStyleAndLayoutDuration { get; }ForcedStyleDuration
LongAnimationFrameTiming.csGets the time spent recalculating the styles synchronously while the script ran: always 0, the library does not measure it.
public double ForcedStyleDuration { get; }Invoker
LongAnimationFrameTiming.csGets what invoked the script: the URL of a script block, the target and the type of an event (e.g. IMG#id.onload), the name of a callback (e.g. FrameRequestCallback, TimerHandler:setTimeout), or the promise of a reaction (e.g. Promise.then).
public string Invoker { get; }Property value
See also
InvokerType
LongAnimationFrameTiming.csGets how the script was invoked: a script block, an event listener, a callback or a promise reaction.
public ScriptInvokerType InvokerType { get; }PauseDuration
LongAnimationFrameTiming.csGets the time the script was paused by a synchronous operation (e.g. a synchronous XMLHttpRequest).
public double PauseDuration { get; }SourceCharPosition
LongAnimationFrameTiming.csGets the position (0-based) of the code in its script, or -1.
public long SourceCharPosition { get; }SourceColumn
LongAnimationFrameTiming.csGets the column (1-based) of the code in its script, or -1.
public long SourceColumn { get; }SourceFunctionName
LongAnimationFrameTiming.csGets the name of the function of a callback or an event listener, or the empty string.
public string SourceFunctionName { get; }SourceLine
LongAnimationFrameTiming.csGets the line (1-based) of the code in its script, or -1.
public long SourceLine { get; }Property value
See also
SourceUrl
LongAnimationFrameTiming.csGets the URL of the script that defines the code, or the empty string.
public string SourceUrl { get; }Property value
See also
StartTime
LongAnimationFrameTiming.csGets the time the script started, in milliseconds relative to the time origin of the window of the long animation frame.
public new double StartTime { get; }Property value
See also
Gets the window of the realm of the script, or null when its document is no longer fully active.
public Window? Window { get; }Property value
See also
WindowAttribution
LongAnimationFrameTiming.csGets the relation between the window of the script and the window of the long animation frame.
public ScriptWindowAttribution WindowAttribution { get; }