proxygen
proxygen::PingByteEvent Class Reference

#include <ByteEvents.h>

Inheritance diagram for proxygen::PingByteEvent:
proxygen::ByteEvent

Public Member Functions

 PingByteEvent (uint64_t byteOffset, TimePoint pingRequestReceivedTime)
 
int64_t getLatency () override
 
- Public Member Functions inherited from proxygen::ByteEvent
 ByteEvent (uint64_t byteOffset, EventType eventType)
 
virtual ~ByteEvent ()
 
virtual HTTPTransactiongetTransaction ()
 

Public Attributes

TimePoint pingRequestReceivedTime_
 
- Public Attributes inherited from proxygen::ByteEvent
folly::IntrusiveListHook listHook
 
EventType eventType_:3
 
size_t eomTracked_:1
 
uint64_t byteOffset_:(8*sizeof(uint64_t)-4)
 

Additional Inherited Members

- Public Types inherited from proxygen::ByteEvent
enum  EventType {
  FIRST_BYTE, LAST_BYTE, PING_REPLY_SENT, FIRST_HEADER_BYTE,
  TRACKED_BYTE
}
 

Detailed Description

Definition at line 100 of file ByteEvents.h.

Constructor & Destructor Documentation

proxygen::PingByteEvent::PingByteEvent ( uint64_t  byteOffset,
TimePoint  pingRequestReceivedTime 
)
inline

Definition at line 102 of file ByteEvents.h.

References proxygen::ByteEvent::getLatency(), and int64_t.

103  : ByteEvent(byteOffset, PING_REPLY_SENT),
104  pingRequestReceivedTime_(pingRequestReceivedTime) {}
ByteEvent(uint64_t byteOffset, EventType eventType)
Definition: ByteEvents.h:29
TimePoint pingRequestReceivedTime_
Definition: ByteEvents.h:108

Member Function Documentation

int64_t proxygen::PingByteEvent::getLatency ( )
overridevirtual

Reimplemented from proxygen::ByteEvent.

Definition at line 29 of file ByteEvents.cpp.

References proxygen::millisecondsSince(), and pingRequestReceivedTime_.

29  {
31 }
TimePoint pingRequestReceivedTime_
Definition: ByteEvents.h:108
std::chrono::milliseconds millisecondsSince(std::chrono::time_point< ClockType > t)
Definition: Time.h:101

Member Data Documentation

TimePoint proxygen::PingByteEvent::pingRequestReceivedTime_

Definition at line 108 of file ByteEvents.h.

Referenced by getLatency().


The documentation for this class was generated from the following files: