Skip to content

PerformanceEntry

[<Interface>]
type PerformanceEntry =
    abstract member duration: float
    abstract member entryType: EntryType
    abstract member name: string
    abstract member startTime: float
    static member Create (duration: float, name: string, startTime: float, entryType: EntryType, toJSON: unit -> obj) : PerformanceEntry
    abstract member toJSON () : obj
AssemblyXantham.Fable.Node
Attributes[<Interface>]

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

@since v8.5.0

Properties

abstract member duration: float

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

@since v8.5.0

abstract member entryType: EntryType

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)

@since v8.5.0

abstract member name: string

The name of the performance entry.

@since v8.5.0

abstract member startTime: float

The high resolution millisecond timestamp marking the starting time of the Performance Entry.

@since v8.5.0

Methods

static member Create (duration: float, name: string, startTime: float, entryType: EntryType, toJSON: unit -> obj) : PerformanceEntry
abstract member toJSON () : obj