PerformanceMark Class

A named time of the performance timeline of a global object (https://w3c.github.io/user-timing/#performancemark), created by Performance.Mark (which adds it to the timeline) or by its constructor (which does not).

public sealed class PerformanceMark : PerformanceEntry
Inheritance
PerformanceEntry PerformanceMark

Constructors

NameDescription
PerformanceMark(GlobalScope, string, PerformanceMarkOptions?)Creates a mark of a global object.
PerformanceMark(string, PerformanceMarkOptions?)Creates a mark of the current global object.

PerformanceMark overloads

PerformanceMark(GlobalScope, string, PerformanceMarkOptions?)

UserTiming.cs

Creates a mark of a global object.

public PerformanceMark(GlobalScope global, string markName, PerformanceMarkOptions? markOptions = null)
Parameters
global GlobalScope
The global object.
markName string
The name of the mark.
markOptions PerformanceMarkOptions?
The time and the data of the mark.

PerformanceMark(string, PerformanceMarkOptions?)

UserTiming.cs

Creates a mark of the current global object.

public PerformanceMark(string markName, PerformanceMarkOptions? markOptions = null)
Parameters
markName string
The name of the mark.
markOptions PerformanceMarkOptions?
The time and the data of the mark.
Exceptions
TypeErrorException
The start time is negative.
DomException
A SyntaxError when the name is the name of an attribute of PerformanceTiming, in a window; a DataCloneError when the data cannot be structured-cloned.
See also

Properties

NameDescription
DetailGets the data of the mark: the structured clone of the detail of the options, or null.

Gets the data of the mark: the structured clone of the detail of the options, or null.

public object? Detail { get; }