Skip to content

PerformanceMeasure

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

Exposes measures created via the Performance.measure() method.

The constructor of this class is not exposed to users directly.

@since v18.2.0, v16.17.0

Functions and values

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

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: "measure"

Properties

abstract member detail: obj
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: "measure"

Methods

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