Skip to content

Commit

Permalink
Log srtt
Browse files Browse the repository at this point in the history
Summary: Log srtt

Reviewed By: sharmafb

Differential Revision: D66723355

fbshipit-source-id: f6902555dd18769f8e6d5450febedc09e382d767
  • Loading branch information
kvtsoy authored and facebook-github-bot committed Dec 4, 2024
1 parent 2b83896 commit 3d240a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quic/tools/tperf/TperfServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ServerStreamHandler : public quic::QuicSocket::ConnectionSetupCallback,

void onConnectionEnd() noexcept override {
LOG(INFO) << "Socket closed";
auto srtt = sock_->getTransportInfo().srtt.count();
sock_.reset();
if (burstDeadlineMs_ > 0) {
auto resultStr =
Expand Down Expand Up @@ -104,6 +105,8 @@ class ServerStreamHandler : public quic::QuicSocket::ConnectionSetupCallback,
burstSendTrueAckedLatencyHistogramMicroseconds_.getPercentileEstimate(
0.95));

resultStr += fmt::format("\nmvfst srtt: {}\n", srtt);

if (doneCallback_) {
doneCallback_->onDone(resultStr);
} else {
Expand Down

0 comments on commit 3d240a3

Please sign in to comment.