Skip to content

PerformanceNodeTiming

[<Interface>]
type PerformanceNodeTiming =
    [<Literal>] entryType: string = "node"
    abstract member bootstrapComplete: float
    abstract member entryType: string
    abstract member environment: float
    abstract member idleTime: float
    abstract member loopExit: float
    abstract member loopStart: float
    abstract member nodeStart: float
    abstract member uvMetricsInfo: UVMetrics
    abstract member v8Start: float
    static member Create (bootstrapComplete: float, environment: float, idleTime: float, loopExit: float, loopStart: float, nodeStart: float, uvMetricsInfo: UVMetrics, v8Start: float, duration: float, name: string, startTime: float, toJSON: unit -> obj) : PerformanceNodeTiming
AssemblyXantham.Fable.Node
ImplementsPerformanceEntry
Attributes[<Interface>]

This property is an extension by Node.js. It is not available in Web browsers.

Provides timing details for Node.js itself. The constructor of this class is not exposed to users.

@since v8.5.0

Functions and values

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

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

Properties

abstract member bootstrapComplete: float

The high resolution millisecond timestamp at which the Node.js process completed bootstrapping. If bootstrapping has not yet finished, the property has the value of -1.

@since v8.5.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: "node"

abstract member environment: float

The high resolution millisecond timestamp at which the Node.js environment was initialized.

@since v8.5.0

abstract member idleTime: float

The high resolution millisecond timestamp of the amount of time the event loop has been idle within the event loop's event provider (e.g. epoll_wait). This does not take CPU usage into consideration. If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of 0.

@since v14.10.0, v12.19.0

abstract member loopExit: float

The high resolution millisecond timestamp at which the Node.js event loop exited. If the event loop has not yet exited, the property has the value of -1. It can only have a value of not -1 in a handler of the 'exit' event.

@since v8.5.0

abstract member loopStart: float

The high resolution millisecond timestamp at which the Node.js event loop started. If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.

@since v8.5.0

abstract member nodeStart: float

The high resolution millisecond timestamp at which the Node.js process was initialized.

@since v8.5.0

abstract member uvMetricsInfo: UVMetrics

This is a wrapper to the uv_metrics_info function. It returns the current set of event loop metrics.

It is recommended to use this property inside a function whose execution was scheduled using setImmediate to avoid collecting metrics before finishing all operations scheduled during the current loop iteration.

@since v22.8.0, v20.18.0

abstract member v8Start: float

The high resolution millisecond timestamp at which the V8 platform was initialized.

@since v8.5.0

Methods

static member Create (bootstrapComplete: float, environment: float, idleTime: float, loopExit: float, loopStart: float, nodeStart: float, uvMetricsInfo: UVMetrics, v8Start: float, duration: float, name: string, startTime: float, toJSON: unit -> obj) : PerformanceNodeTiming