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
PerformanceEntry PerformanceScriptTiming

Properties

NameDescription
DurationGets the duration of the script, including the microtasks that ran after it.
EntryTypeGets script.
ExecutionStartGets the time the script started to execute (after its compilation), or 0.
ForcedLayoutDurationGets the time spent updating the layout synchronously while the script ran: always 0, the library does not measure it.
ForcedStyleAndLayoutDurationGets the time spent recalculating the styles and updating the layout synchronously while the script ran: always 0, the library does not measure it.
ForcedStyleDurationGets the time spent recalculating the styles synchronously while the script ran: always 0, the library does not measure it.
InvokerGets 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).
InvokerTypeGets how the script was invoked: a script block, an event listener, a callback or a promise reaction.
NameGets script.
PauseDurationGets the time the script was paused by a synchronous operation (e.g. a synchronous XMLHttpRequest).
SourceCharPositionGets the position (0-based) of the code in its script, or -1.
SourceColumnGets the column (1-based) of the code in its script, or -1.
SourceFunctionNameGets the name of the function of a callback or an event listener, or the empty string.
SourceLineGets the line (1-based) of the code in its script, or -1.
SourceUrlGets the URL of the script that defines the code, or the empty string.
StartTimeGets the time the script started, in milliseconds relative to the time origin of the window of the long animation frame.
WindowGets the window of the realm of the script, or null when its document is no longer fully active.
WindowAttributionGets the relation between the window of the script and the window of the long animation frame.

Gets the duration of the script, including the microtasks that ran after it.

public new double Duration { get; }

Gets script.

public new string EntryType { get; }

Gets the time the script started to execute (after its compilation), or 0.

public double ExecutionStart { get; }

ForcedLayoutDuration

LongAnimationFrameTiming.cs

Gets 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.cs

Gets 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.cs

Gets the time spent recalculating the styles synchronously while the script ran: always 0, the library does not measure it.

public double ForcedStyleDuration { get; }

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).

public string Invoker { get; }

Gets how the script was invoked: a script block, an event listener, a callback or a promise reaction.

public ScriptInvokerType InvokerType { get; }

Gets the time the script was paused by a synchronous operation (e.g. a synchronous XMLHttpRequest).

public double PauseDuration { get; }

SourceCharPosition

LongAnimationFrameTiming.cs

Gets the position (0-based) of the code in its script, or -1.

public long SourceCharPosition { get; }

Gets the column (1-based) of the code in its script, or -1.

public long SourceColumn { get; }

SourceFunctionName

LongAnimationFrameTiming.cs

Gets the name of the function of a callback or an event listener, or the empty string.

public string SourceFunctionName { get; }

Gets the line (1-based) of the code in its script, or -1.

public long SourceLine { get; }

Gets the URL of the script that defines the code, or the empty string.

public string SourceUrl { get; }

Gets 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; }

Gets the window of the realm of the script, or null when its document is no longer fully active.

public Window? Window { get; }

Gets the relation between the window of the script and the window of the long animation frame.

public ScriptWindowAttribution WindowAttribution { get; }