Skip to content

PerformanceMark

[<Interface>]
type PerformanceMark =
    [<Literal>] duration: float = 0
    [<Literal>] entryType: string = "mark"
    abstract member detail: obj
    abstract member duration: float
    abstract member entryType: string
    static member Create (detail: obj, name: string, startTime: float, toJSON: unit -> obj) : PerformanceMark
AssemblyXantham.Fable.Node
ImplementsPerformanceEntry
Attributes[<Interface>]

Exposes marks created via the Performance.mark() method.

@since v18.2.0, v16.17.0

Functions and values

[<Literal>] duration: float = 0

The total number of milliseconds elapsed for this entry. This value will not be meaningful for all Performance Entry types.

TypeScript type: 0

[<Literal>] entryType: string = "mark"

The type of the performance entry. It may be one of:

  • 'node' (Node.js only)
  • 'mark' (available on the Web)
  • 'measure' (available on the Web)
  • 'gc' (Node.js only)
  • 'function' (Node.js only)
  • 'http2' (Node.js only)
  • 'http' (Node.js only)

TypeScript type: "mark"

Properties

abstract member detail: obj
abstract member duration: float

The total number of milliseconds elapsed for this entry. This value will not be meaningful for all Performance Entry types.

TypeScript type: 0

abstract member entryType: string

The type of the performance entry. It may be one of:

  • 'node' (Node.js only)
  • 'mark' (available on the Web)
  • 'measure' (available on the Web)
  • 'gc' (Node.js only)
  • 'function' (Node.js only)
  • 'http2' (Node.js only)
  • 'http' (Node.js only)

TypeScript type: "mark"

Methods

static member Create (detail: obj, name: string, startTime: float, toJSON: unit -> obj) : PerformanceMark