Log RTT as seen by congestion controller (#3354)
This commit is contained in:
@@ -114,6 +114,10 @@ func (p *probeController) UpdateRTT(rtt float64) {
|
||||
}
|
||||
}
|
||||
|
||||
func (p *probeController) GetRTT() float64 {
|
||||
return p.rtt
|
||||
}
|
||||
|
||||
func (p *probeController) CanProbe() bool {
|
||||
return p.state == probeControllerStateNone && p.ProbeRegulator.CanProbe()
|
||||
}
|
||||
|
||||
@@ -316,6 +316,7 @@ func (r *RemoteBWE) ProbeClusterFinalize() (ccutils.ProbeSignal, int64, bool) {
|
||||
"channel", pco,
|
||||
"isSignalValid", pco.HasEnoughEstimateSamples(),
|
||||
"probeClusterInfo", pci,
|
||||
"rtt", r.probeController.GetRTT(),
|
||||
)
|
||||
|
||||
probeSignal := ccutils.ProbeSignalNotCongesting
|
||||
|
||||
@@ -803,6 +803,7 @@ func (c *congestionDetector) ProbeClusterFinalize() (ccutils.ProbeSignal, int64,
|
||||
"probeClusterInfo", pci,
|
||||
"probePacketGroup", c.probePacketGroup,
|
||||
"congestionState", c.congestionState,
|
||||
"rtt", c.rtt,
|
||||
)
|
||||
|
||||
// if congestion signal changed during probe, defer to that signal
|
||||
|
||||
Reference in New Issue
Block a user