class WebkitRemote::Client::NetworkResourceTiming

Wraps timing information for network events.

Attributes

connect_end_ms[R]

@param [Number] milliseconds from {#time} until the TCP connection

was established
connect_start_ms[R]

@param [Number] milliseconds from {#time} until the TCP connection

started being established
dns_end_ms[R]

@param [Number] milliseconds from {#time} until the server DNS resolution

completed
dns_start_ms[R]

@param [Number] milliseconds from {#time} until the start of the server DNS

resolution
proxy_end_ms[R]

@param [Number] milliseconds from {#time} until the proxy DNS resolution

completed
proxy_start_ms[R]

@param [Number] milliseconds from {#time} until the start of the proxy DNS

resolution
receive_headers_end_ms[R]

@param [Number] milliseconds from {#time} until all the response HTTP

headers were received
send_end_ms[R]

@param [Number] milliseconds from {#time} until the HTTP request finished

transmitting
send_start_ms[R]

@param [Number] milliseconds from {#time} until the HTTP request started

being transmitted
ssl_end_ms[R]

@param [Number] milliseconds from {#time} until the SSL handshake completed

ssl_start_ms[R]

@param [Number] milliseconds from {#time} until the start of the SSL

handshake
time[R]

@param [Number] baseline time for the HTTP request used to fetch a resource

Public Class Methods

new(raw_timing) click to toggle source

@private use Event#for instead of calling this constructor directly

@param [Hash<String, Number>] the raw RPC data for a ResourceTiming object

in the Network domain
# File lib/webkit_remote/client/network_events.rb, line 477
def initialize(raw_timing)
  @time = raw_timing['requestTime'].to_f

  @connect_start_ms = raw_timing['connectStart'].to_f
  @connect_end_ms = raw_timing['connectEnd'].to_f
  @dns_start_ms = raw_timing['dnsStart'].to_f
  @dns_end_ms = raw_timing['dnsEnd'].to_f
  @proxy_start_ms = raw_timing['proxyStart'].to_f
  @proxy_end_ms = raw_timing['proxyEnd'].to_f
  @receive_headers_end_ms = raw_timing['receiveHeadersEnd'].to_f
  @send_start_ms = raw_timing['sendStart'].to_f
  @send_end_ms = raw_timing['sendEnd'].to_f
  @ssl_start_ms = raw_timing['sslStart'].to_f
  @ssl_end_ms = raw_timing['sslEnd'].to_f
end