Skip to content

PerformanceResourceTiming

[<Interface>]
type PerformanceResourceTiming =
    [<Literal>] entryType: string = "resource"
    abstract member connectEnd: float
    abstract member connectStart: float
    abstract member decodedBodySize: float
    abstract member domainLookupEnd: float
    abstract member domainLookupStart: float
    abstract member encodedBodySize: float
    abstract member entryType: string
    abstract member fetchStart: float
    abstract member redirectEnd: float
    abstract member redirectStart: float
    abstract member requestStart: float
    abstract member responseEnd: float
    abstract member secureConnectionStart: float
    abstract member transferSize: float
    abstract member workerStart: float
    static member Create (workerStart: float, redirectStart: float, redirectEnd: float, fetchStart: float, domainLookupStart: float, domainLookupEnd: float, connectStart: float, connectEnd: float, secureConnectionStart: float, requestStart: float, responseEnd: float, transferSize: float, encodedBodySize: float, decodedBodySize: float, toJSON: unit -> obj, duration: float, name: string, startTime: float) : PerformanceResourceTiming
AssemblyXantham.Fable.Node
ImplementsPerformanceEntry
Attributes[<Interface>]

Provides detailed network timing data regarding the loading of an application's resources.

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

@since v18.2.0, v16.17.0

Functions and values

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

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

Properties

abstract member connectEnd: float

The high resolution millisecond timestamp representing the time immediately after Node.js finishes establishing the connection to the server to retrieve the resource.

@since v18.2.0, v16.17.0

abstract member connectStart: float

The high resolution millisecond timestamp representing the time immediately before Node.js starts to establish the connection to the server to retrieve the resource.

@since v18.2.0, v16.17.0

abstract member decodedBodySize: float

A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after removing any applied content-codings.

@since v18.2.0, v16.17.0

abstract member domainLookupEnd: float

The high resolution millisecond timestamp representing the time immediately after the Node.js finished the domain name lookup for the resource.

@since v18.2.0, v16.17.0

abstract member domainLookupStart: float

The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup for the resource.

@since v18.2.0, v16.17.0

abstract member encodedBodySize: float

A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before removing any applied content-codings.

@since v18.2.0, v16.17.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: "resource"

abstract member fetchStart: float

The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource.

@since v18.2.0, v16.17.0

abstract member redirectEnd: float

The high resolution millisecond timestamp that will be created immediately after receiving the last byte of the response of the last redirect.

@since v18.2.0, v16.17.0

abstract member redirectStart: float

The high resolution millisecond timestamp that represents the start time of the fetch which initiates the redirect.

@since v18.2.0, v16.17.0

abstract member requestStart: float

The high resolution millisecond timestamp representing the time immediately before Node.js receives the first byte of the response from the server.

@since v18.2.0, v16.17.0

abstract member responseEnd: float

The high resolution millisecond timestamp representing the time immediately after Node.js receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.

@since v18.2.0, v16.17.0

abstract member secureConnectionStart: float

The high resolution millisecond timestamp representing the time immediately before Node.js starts the handshake process to secure the current connection.

@since v18.2.0, v16.17.0

abstract member transferSize: float

A number representing the size (in octets) of the fetched resource. The size includes the response header fields plus the response payload body.

@since v18.2.0, v16.17.0

abstract member workerStart: float

The high resolution millisecond timestamp at immediately before dispatching the fetch request. If the resource is not intercepted by a worker the property will always return 0.

@since v18.2.0, v16.17.0

Methods

static member Create (workerStart: float, redirectStart: float, redirectEnd: float, fetchStart: float, domainLookupStart: float, domainLookupEnd: float, connectStart: float, connectEnd: float, secureConnectionStart: float, requestStart: float, responseEnd: float, transferSize: float, encodedBodySize: float, decodedBodySize: float, toJSON: unit -> obj, duration: float, name: string, startTime: float) : PerformanceResourceTiming