mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-09 10:00:57 +03:00
Add DSR packet count to state and qlog.
Summary: It's useful at the end of a connection to know if we tried DSR. Reviewed By: jbeshay Differential Revision: D30545282 fbshipit-source-id: bbb2f3408f7a2d5666676c9e2583bf8fd9f18911
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c1b93c27c
commit
40cc0ca93e
@@ -343,6 +343,7 @@ QLogTransportSummaryEvent::QLogTransportSummaryEvent(
|
||||
uint64_t currentConnFlowControlIn,
|
||||
bool usedZeroRttIn,
|
||||
QuicVersion quicVersionIn,
|
||||
uint64_t dsrPacketCountIn,
|
||||
std::chrono::microseconds refTimeIn)
|
||||
: totalBytesSent{totalBytesSentIn},
|
||||
totalBytesRecvd{totalBytesRecvdIn},
|
||||
@@ -357,7 +358,8 @@ QLogTransportSummaryEvent::QLogTransportSummaryEvent(
|
||||
currentWritableBytes{currentWritableBytesIn},
|
||||
currentConnFlowControl{currentConnFlowControlIn},
|
||||
usedZeroRtt{usedZeroRttIn},
|
||||
quicVersion{quicVersionIn} {
|
||||
quicVersion{quicVersionIn},
|
||||
dsrPacketCount{dsrPacketCountIn} {
|
||||
eventType = QLogEventType::TransportSummary;
|
||||
refTime = refTimeIn;
|
||||
}
|
||||
@@ -387,6 +389,7 @@ folly::dynamic QLogTransportSummaryEvent::toDynamic() const {
|
||||
data["quic_version"] =
|
||||
static_cast<std::underlying_type<decltype(quicVersion)>::type>(
|
||||
quicVersion);
|
||||
data["dsr_packet_count"] = dsrPacketCount;
|
||||
|
||||
d.push_back(std::move(data));
|
||||
return d;
|
||||
|
||||
Reference in New Issue
Block a user