PerformanceObserverInit Class

https://w3c.github.io/performance-timeline/#performanceobserverinit-dictionary

public sealed class PerformanceObserverInit

Constructors

NameDescription
PerformanceObserverInit()

PerformanceObserverInit()

public PerformanceObserverInit()

No documentation is available.

Properties

NameDescription
BufferedGets or sets whether the entries of the performance entry buffer of PerformanceObserverInit.Type are observed.
DurationThresholdGets or sets the minimum duration of the event timing entries (PerformanceEventTiming) that are observed with PerformanceObserverInit.Type, in milliseconds (https://w3c.github.io/event-timing/#sec-modifications-perf-timeline): 104 by default, and at least 16.
EntryTypesGets or sets the entry types to observe. No other member can be set with it.
TypeGets or sets a single entry type to observe.

Gets or sets whether the entries of the performance entry buffer of PerformanceObserverInit.Type are observed.

public bool? Buffered { get; set; }

DurationThreshold

PerformanceObserver.cs

Gets or sets the minimum duration of the event timing entries (PerformanceEventTiming) that are observed with PerformanceObserverInit.Type, in milliseconds (https://w3c.github.io/event-timing/#sec-modifications-perf-timeline): 104 by default, and at least 16.

public double? DurationThreshold { get; set; }

Gets or sets the entry types to observe. No other member can be set with it.

public IReadOnlyList<string>? EntryTypes { get; set; }

Gets or sets a single entry type to observe.

public string? Type { get; set; }