Skip to content

Commit

Permalink
Log rtt variance and latest rtt
Browse files Browse the repository at this point in the history
Summary: As title

Reviewed By: kvtsoy

Differential Revision: D62965330

fbshipit-source-id: 93f865633e589f97589a8b7b06609e8995abf53d
  • Loading branch information
Crystal Jin authored and facebook-github-bot committed Sep 19, 2024
1 parent 4c758a4 commit 0ed5f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions quic/api/QuicTransportBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2971,6 +2971,7 @@ QuicConnectionStats QuicTransportBase::getConnectionsStats() const {
connStats.ptoCount = conn_->lossState.ptoCount;
connStats.srtt = conn_->lossState.srtt;
connStats.mrtt = conn_->lossState.mrtt;
connStats.lrtt = conn_->lossState.lrtt;
connStats.rttvar = conn_->lossState.rttvar;
connStats.peerAckDelayExponent = conn_->peerAckDelayExponent;
connStats.udpSendPacketLen = conn_->udpSendPacketLen;
Expand Down
1 change: 1 addition & 0 deletions quic/state/QuicConnectionStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ struct QuicConnectionStats {
uint32_t ptoCount{0};
std::chrono::microseconds srtt{0};
std::chrono::microseconds mrtt{0};
std::chrono::microseconds lrtt{0};
std::chrono::microseconds rttvar{0};
uint64_t peerAckDelayExponent{0};
uint64_t udpSendPacketLen{0};
Expand Down

0 comments on commit 0ed5f1c

Please sign in to comment.