PerformanceLongAnimationFrameTiming Class

A long animation frame (https://w3c.github.io/long-animation-frames/#sec-PerformanceLongAnimationFrameTiming): a task after which the rendering was not updated, or the tasks that ran until the rendering was updated, that lasted 50 milliseconds or more. It is reported to the long-animation-frame performance observers of the window whose tasks ran, and is available from its performance timeline. PerformanceLongAnimationFrameTiming.Scripts lists the scripts that ran 5 milliseconds or more.

public sealed class PerformanceLongAnimationFrameTiming : PerformanceEntry

Remarks

The Long Animation Frames API is a draft that the browsers based on Chromium implement.

See also

Inheritance
PerformanceEntry PerformanceLongAnimationFrameTiming

Properties

NameDescription
BlockingDurationGets the time the frame blocked the main thread: the sum of the durations of its tasks beyond 50 milliseconds, the duration of the rendering update being added to the longest task.
DurationGets the duration of the frame, from the start of its first task to the end of its rendering update (PerformanceLongAnimationFrameTiming.PaintTime), or to the end of its last task when the rendering was not updated.
EntryTypeGets long-animation-frame.
FirstUIEventTimestampGets the time stamp of the first UI event (e.g. click, keydown) whose listeners ran in the frame, or 0.
LayoutDurationGets the time spent updating the layout in the rendering update of the frame: always 0, the library does not measure it.
NameGets long-animation-frame.
PaintTimeGets the time of the end of the rendering update of the frame, or 0 when the frame did not update the rendering.
PresentationTimeGets the time the frame was presented: null, the library has no presentation time.
RenderStartGets the time of the start of the rendering update of the frame, or 0 when the frame did not update the rendering.
ScriptsGets the scripts that ran 5 milliseconds or more in the frame, in the order they started.
StartTimeGets the time of the start of the first task of the frame, in milliseconds relative to the time origin of the window of the entry.
StyleAndLayoutStartGets the time of the start of the style and layout step of the rendering update of the frame (after the animation frame callbacks), or 0 when the frame did not update the rendering.
StyleDurationGets the time spent recalculating the styles in the rendering update of the frame: always 0, the library does not measure it.

Gets the time the frame blocked the main thread: the sum of the durations of its tasks beyond 50 milliseconds, the duration of the rendering update being added to the longest task.

public double BlockingDuration { get; }

Gets the duration of the frame, from the start of its first task to the end of its rendering update (PerformanceLongAnimationFrameTiming.PaintTime), or to the end of its last task when the rendering was not updated.

public new double Duration { get; }

Gets long-animation-frame.

public new string EntryType { get; }

FirstUIEventTimestamp

LongAnimationFrameTiming.cs

Gets the time stamp of the first UI event (e.g. click, keydown) whose listeners ran in the frame, or 0.

public double FirstUIEventTimestamp { get; }

Gets the time spent updating the layout in the rendering update of the frame: always 0, the library does not measure it.

public double LayoutDuration { get; }

Gets long-animation-frame.

public new string Name { get; }

Gets the time of the end of the rendering update of the frame, or 0 when the frame did not update the rendering.

public double PaintTime { get; }

Gets the time the frame was presented: null, the library has no presentation time.

public double? PresentationTime { get; }

Gets the time of the start of the rendering update of the frame, or 0 when the frame did not update the rendering.

public double RenderStart { get; }

Gets the scripts that ran 5 milliseconds or more in the frame, in the order they started.

public IReadOnlyList<PerformanceScriptTiming> Scripts { get; }

Gets the time of the start of the first task of the frame, in milliseconds relative to the time origin of the window of the entry.

public new double StartTime { get; }

StyleAndLayoutStart

LongAnimationFrameTiming.cs

Gets the time of the start of the style and layout step of the rendering update of the frame (after the animation frame callbacks), or 0 when the frame did not update the rendering.

public double StyleAndLayoutStart { get; }

Gets the time spent recalculating the styles in the rendering update of the frame: always 0, the library does not measure it.

public double StyleDuration { get; }