Table of Contents

Interface IPerformanceTimeline

Namespace
Selenium.WebDriver.BiDi.Cdp.PerformanceTimeline
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.

[Experimental("BIDICDP001")]
public interface IPerformanceTimeline

Properties

TimelineEventAdded

Sent when a performance timeline event is added. See reportPerformanceTimeline method.

IEventSource<TimelineEventAddedEventArgs> TimelineEventAdded { get; }

Property Value

IEventSource<TimelineEventAddedEventArgs>

Remarks

Event args (TimelineEventAddedEventArgs):

  • Event

Methods

EnableAsync(ImmutableArray<string>, string?, CancellationToken)

Previously buffered events would be reported before method returns. See also: timelineEventAdded

Task<EnableResult> EnableAsync(ImmutableArray<string> eventTypes, string? session = null, CancellationToken cancellationToken = default)

Parameters

eventTypes ImmutableArray<string>

The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<EnableResult>

A task representing the asynchronous operation, containing a EnableResult.