PerformanceMark

open class PerformanceMark(markName: String, markOptions: PerformanceMarkOptions = definedExternally) : PerformanceEntry(source)

PerformanceMark is an interface for PerformanceEntry objects with an entryType of "mark".

MDN Reference

Constructors

Link copied to clipboard
constructor(markName: String, markOptions: PerformanceMarkOptions = definedExternally)

Properties

Link copied to clipboard

The read-only detail property returns arbitrary metadata that was included in the mark upon construction (either when using performance.mark() or the PerformanceMark() constructor).

Link copied to clipboard

The read-only duration property returns a timestamp that is the duration of the performance entry. The meaning of this property depends on the value of this entry's entryType.

Link copied to clipboard

The read-only entryType property returns a string representing the type of performance metric that this entry represents.

Link copied to clipboard

The read-only name property of the PerformanceEntry interface is a string representing the name for a performance entry. It acts as an identifier, but it does not have to be unique. The value depends on the subclass.

Link copied to clipboard

The read-only startTime property returns the first timestamp recorded for this PerformanceEntry. The meaning of this property depends on the value of this entry's entryType.

Functions

Link copied to clipboard
open fun toJSON(): JsAny

The toJSON() method is a serializer; it returns a JSON representation of the PerformanceEntry object.