PerformanceNodeTiming

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

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.

Link copied to clipboard
open external val duration: Double

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

Link copied to clipboard
external val environment: Double

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

Link copied to clipboard
external val idleTime: Double

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.

Link copied to clipboard
external val loopExit: Double

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.

Link copied to clipboard
external val loopStart: Double

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.

Link copied to clipboard
external val name: String

The name of the performance entry.

Link copied to clipboard
external val nodeStart: Double

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

Link copied to clipboard
Link copied to clipboard
external val startTime: Double

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

Link copied to clipboard
external val uvMetricsInfo: UVMetrics

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

Link copied to clipboard
external val v8Start: Double

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

Functions

Link copied to clipboard
open external fun toJSON(): Any?