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 : PerformanceEntryRemarks
The Long Animation Frames API is a draft that the browsers based on Chromium implement.
See also
- Inheritance
PerformanceEntryPerformanceLongAnimationFrameTiming
Properties
| Name | Description |
|---|---|
| BlockingDuration | 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. |
| Duration | 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. |
| EntryType | Gets long-animation-frame. |
| FirstUIEventTimestamp | Gets the time stamp of the first UI event (e.g. click, keydown) whose listeners ran in the frame, or 0. |
| LayoutDuration | Gets the time spent updating the layout in the rendering update of the frame: always 0, the library does not measure it. |
| Name | Gets long-animation-frame. |
| PaintTime | Gets the time of the end of the rendering update of the frame, or 0 when the frame did not update the rendering. |
| PresentationTime | Gets the time the frame was presented: null, the library has no presentation time. |
| RenderStart | Gets the time of the start of the rendering update of the frame, or 0 when the frame did not update the rendering. |
| Scripts | Gets the scripts that ran 5 milliseconds or more in the frame, in the order they started. |
| StartTime | 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. |
| StyleAndLayoutStart | 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. |
| StyleDuration | Gets the time spent recalculating the styles in the rendering update of the frame: always 0, the library does not measure it. |
BlockingDuration
LongAnimationFrameTiming.csGets 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; }Duration
LongAnimationFrameTiming.csGets 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; }EntryType
LongAnimationFrameTiming.csGets long-animation-frame.
public new string EntryType { get; }FirstUIEventTimestamp
LongAnimationFrameTiming.csGets the time stamp of the first UI event (e.g. click, keydown) whose listeners ran in the frame, or 0.
public double FirstUIEventTimestamp { get; }LayoutDuration
LongAnimationFrameTiming.csGets 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; }PaintTime
LongAnimationFrameTiming.csGets 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; }PresentationTime
LongAnimationFrameTiming.csGets the time the frame was presented: null, the library has no presentation time.
public double? PresentationTime { get; }Property value
See also
RenderStart
LongAnimationFrameTiming.csGets 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; }Scripts
LongAnimationFrameTiming.csGets the scripts that ran 5 milliseconds or more in the frame, in the order they started.
public IReadOnlyList<PerformanceScriptTiming> Scripts { get; }StartTime
LongAnimationFrameTiming.csGets 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.csGets 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; }StyleDuration
LongAnimationFrameTiming.csGets 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; }