class WebkitRemote::Client::NetworkResourceTiming
Wraps timing information for network events.
Attributes
@param [Number] milliseconds from {#time} until the TCP connection
was established
@param [Number] milliseconds from {#time} until the TCP connection
started being established
@param [Number] milliseconds from {#time} until the server DNS resolution
completed
@param [Number] milliseconds from {#time} until the start of the server DNS
resolution
@param [Number] milliseconds from {#time} until the proxy DNS resolution
completed
@param [Number] milliseconds from {#time} until the start of the proxy DNS
resolution
@param [Number] milliseconds from {#time} until all the response HTTP
headers were received
@param [Number] milliseconds from {#time} until the HTTP request finished
transmitting
@param [Number] milliseconds from {#time} until the HTTP request started
being transmitted
@param [Number] milliseconds from {#time} until the SSL handshake completed
@param [Number] milliseconds from {#time} until the start of the SSL
handshake
@param [Number] baseline time for the HTTP request used to fetch a resource
Public Class Methods
@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