mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Add new qlog type for l4s weight updates
Summary: This helps with tuning l4s reaction in Cubic and debugging l4s in general. To avoid spamming the qlog, an l4s weights update is only logged if new CE marks are echoed from the peer. Reviewed By: sharmafb Differential Revision: D57874704 fbshipit-source-id: 9c3f139aec73fc0dbd8d38e2237d6a6478cf1e3d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
05b4eb9238
commit
1ad1b0789b
@@ -499,6 +499,16 @@ void FileQLogger::addPriorityUpdate(
|
||||
streamId, urgency, incremental, refTime));
|
||||
}
|
||||
|
||||
void FileQLogger::addL4sWeightUpdate(
|
||||
double l4sWeight,
|
||||
uint32_t newEct1,
|
||||
uint32_t newCe) {
|
||||
auto refTime = std::chrono::duration_cast<std::chrono::microseconds>(
|
||||
std::chrono::steady_clock::now().time_since_epoch());
|
||||
handleEvent(std::make_unique<quic::QLogL4sWeightUpdateEvent>(
|
||||
l4sWeight, newEct1, newCe, refTime));
|
||||
}
|
||||
|
||||
void FileQLogger::outputLogsToFile(const std::string& path, bool prettyJson) {
|
||||
if (streaming_) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user