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 : PerformanceEntryRemarks
The Long Tasks API is a discontinued draft that the browsers based on Chromium implement.
See also
- Inheritance
PerformanceEntryPerformanceLongTaskTiming
Properties
| Name | Description |
|---|---|
| Attribution | Gets the attribution of the task: a single TaskAttributionTiming, which identifies the container of the culprit browsing context. |
| Duration | Gets the duration of the task, in whole milliseconds. |
| EntryType | Gets longtask. |
| Name | Gets where the scripts of the task ran, relative to the window of the entry (https://w3c.github.io/longtasks/#sec-PerformanceLongTaskTiming). |
| StartTime | Gets the time of the start of the task, in milliseconds relative to the time origin of the window of the entry. |
Attribution
LongTaskTiming.csGets the attribution of the task: a single TaskAttributionTiming, which identifies the container of the culprit browsing context.
public IReadOnlyList<TaskAttributionTiming> Attribution { get; }Duration
LongTaskTiming.csGets the duration of the task, in whole milliseconds.
public new double Duration { get; }EntryType
LongTaskTiming.csGets 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; }StartTime
LongTaskTiming.csGets 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; }