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.
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/webkit_remote/client/network_events.rb', line 483 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)
458 459 460 |
# File 'lib/webkit_remote/client/network_events.rb', line 458 def connect_end_ms @connect_end_ms end |
#connect_start_ms ⇒ Object (readonly)
454 455 456 |
# File 'lib/webkit_remote/client/network_events.rb', line 454 def connect_start_ms @connect_start_ms end |
#dns_end_ms ⇒ Object (readonly)
442 443 444 |
# File 'lib/webkit_remote/client/network_events.rb', line 442 def dns_end_ms @dns_end_ms end |
#dns_start_ms ⇒ Object (readonly)
438 439 440 |
# File 'lib/webkit_remote/client/network_events.rb', line 438 def dns_start_ms @dns_start_ms end |
#proxy_end_ms ⇒ Object (readonly)
450 451 452 |
# File 'lib/webkit_remote/client/network_events.rb', line 450 def proxy_end_ms @proxy_end_ms end |
#proxy_start_ms ⇒ Object (readonly)
446 447 448 |
# File 'lib/webkit_remote/client/network_events.rb', line 446 def proxy_start_ms @proxy_start_ms end |
#receive_headers_end_ms ⇒ Object (readonly)
477 478 479 |
# File 'lib/webkit_remote/client/network_events.rb', line 477 def receive_headers_end_ms @receive_headers_end_ms end |
#send_end_ms ⇒ Object (readonly)
473 474 475 |
# File 'lib/webkit_remote/client/network_events.rb', line 473 def send_end_ms @send_end_ms end |
#send_start_ms ⇒ Object (readonly)
469 470 471 |
# File 'lib/webkit_remote/client/network_events.rb', line 469 def send_start_ms @send_start_ms end |
#ssl_end_ms ⇒ Object (readonly)
465 466 467 |
# File 'lib/webkit_remote/client/network_events.rb', line 465 def ssl_end_ms @ssl_end_ms end |
#ssl_start_ms ⇒ Object (readonly)
462 463 464 |
# File 'lib/webkit_remote/client/network_events.rb', line 462 def ssl_start_ms @ssl_start_ms end |
#time ⇒ Object (readonly)
434 435 436 |
# File 'lib/webkit_remote/client/network_events.rb', line 434 def time @time end |