PerformanceLongTaskTiming Class

A long task (https://w3c.github.io/longtasks/#sec-PerformanceLongTaskTiming): a task of the event loop, with its microtask checkpoint, that ran scripts for 50 milliseconds or more. It is reported to the longtask performance observers of the windows of the top-level browsing contexts of the scripts that ran in the task, and of their descendant browsing contexts. Its name tells where the scripts ran, relative to the window that observes it (self, same-origin-ancestor, cross-origin-descendant, multiple-contexts...).

public sealed class PerformanceLongTaskTiming : PerformanceEntry

Remarks

The Long Tasks API is a discontinued draft that the browsers based on Chromium implement.

See also

Inheritance
PerformanceEntry PerformanceLongTaskTiming

Properties

NameDescription
AttributionGets the attribution of the task: a single TaskAttributionTiming, which identifies the container of the culprit browsing context.
DurationGets the duration of the task, in whole milliseconds.
EntryTypeGets longtask.
NameGets where the scripts of the task ran, relative to the window of the entry (https://w3c.github.io/longtasks/#sec-PerformanceLongTaskTiming).
StartTimeGets the time of the start of the task, in milliseconds relative to the time origin of the window of the entry.

Gets the attribution of the task: a single TaskAttributionTiming, which identifies the container of the culprit browsing context.

public IReadOnlyList<TaskAttributionTiming> Attribution { get; }

Gets the duration of the task, in whole milliseconds.

public new double Duration { get; }

Gets longtask.

public new string EntryType { get; }

Gets where the scripts of the task ran, relative to the window of the entry (https://w3c.github.io/longtasks/#sec-PerformanceLongTaskTiming).

public new string Name { get; }

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

public new double StartTime { get; }