Class: WebkitRemote::Client::NetworkResourceTiming
- Inherits:
-
Object
- Object
- WebkitRemote::Client::NetworkResourceTiming
- Defined in:
- lib/webkit_remote/client/network_events.rb
Overview
Wraps timing information for network events.
Instance Attribute Summary collapse
- #connect_end_ms ⇒ Object readonly
- #connect_start_ms ⇒ Object readonly
- #dns_end_ms ⇒ Object readonly
- #dns_start_ms ⇒ Object readonly
- #proxy_end_ms ⇒ Object readonly
- #proxy_start_ms ⇒ Object readonly
- #receive_headers_end_ms ⇒ Object readonly
- #send_end_ms ⇒ Object readonly
- #send_start_ms ⇒ Object readonly
- #ssl_end_ms ⇒ Object readonly
- #ssl_start_ms ⇒ Object readonly
- #time ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(raw_timing) ⇒ NetworkResourceTiming
constructor
A new instance of NetworkResourceTiming.
Constructor Details
#initialize(raw_timing) ⇒ NetworkResourceTiming
Returns a new instance of NetworkResourceTiming.
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
# 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 |
Instance Attribute Details
#connect_end_ms ⇒ Object (readonly)
452 453 454 |
# File 'lib/webkit_remote/client/network_events.rb', line 452 def connect_end_ms @connect_end_ms end |
#connect_start_ms ⇒ Object (readonly)
448 449 450 |
# File 'lib/webkit_remote/client/network_events.rb', line 448 def connect_start_ms @connect_start_ms end |
#dns_end_ms ⇒ Object (readonly)
436 437 438 |
# File 'lib/webkit_remote/client/network_events.rb', line 436 def dns_end_ms @dns_end_ms end |
#dns_start_ms ⇒ Object (readonly)
432 433 434 |
# File 'lib/webkit_remote/client/network_events.rb', line 432 def dns_start_ms @dns_start_ms end |
#proxy_end_ms ⇒ Object (readonly)
444 445 446 |
# File 'lib/webkit_remote/client/network_events.rb', line 444 def proxy_end_ms @proxy_end_ms end |
#proxy_start_ms ⇒ Object (readonly)
440 441 442 |
# File 'lib/webkit_remote/client/network_events.rb', line 440 def proxy_start_ms @proxy_start_ms end |
#receive_headers_end_ms ⇒ Object (readonly)
471 472 473 |
# File 'lib/webkit_remote/client/network_events.rb', line 471 def receive_headers_end_ms @receive_headers_end_ms end |
#send_end_ms ⇒ Object (readonly)
467 468 469 |
# File 'lib/webkit_remote/client/network_events.rb', line 467 def send_end_ms @send_end_ms end |
#send_start_ms ⇒ Object (readonly)
463 464 465 |
# File 'lib/webkit_remote/client/network_events.rb', line 463 def send_start_ms @send_start_ms end |
#ssl_end_ms ⇒ Object (readonly)
459 460 461 |
# File 'lib/webkit_remote/client/network_events.rb', line 459 def ssl_end_ms @ssl_end_ms end |
#ssl_start_ms ⇒ Object (readonly)
456 457 458 |
# File 'lib/webkit_remote/client/network_events.rb', line 456 def ssl_start_ms @ssl_start_ms end |
#time ⇒ Object (readonly)
428 429 430 |
# File 'lib/webkit_remote/client/network_events.rb', line 428 def time @time end |