refactor(irtt-stats): split snapshot builders
This commit is contained in:
1 file changed
+33
-17
@@ -445,23 +445,39 @@ impl CoreStats {
|
|||||||
loss: loss_stats(packets),
|
loss: loss_stats(packets),
|
||||||
send_call: self.send_call.stats(),
|
send_call: self.send_call.stats(),
|
||||||
timer_error: self.timer_error.stats(),
|
timer_error: self.timer_error.stats(),
|
||||||
rtt: RttStats {
|
rtt: self.rtt_stats(),
|
||||||
primary: self.rtt_primary.stats(),
|
ipdv: self.ipdv_stats(),
|
||||||
raw: self.rtt_raw.stats(),
|
one_way_delay: self.one_way_delay_stats(),
|
||||||
adjusted: self.rtt_adjusted.stats(),
|
server_processing: self.server_processing_stats(),
|
||||||
},
|
}
|
||||||
ipdv: IpdvStats {
|
}
|
||||||
round_trip: self.ipdv_round_trip.stats(),
|
|
||||||
send: self.ipdv_send.stats(),
|
fn rtt_stats(&self) -> RttStats {
|
||||||
receive: self.ipdv_receive.stats(),
|
RttStats {
|
||||||
},
|
primary: self.rtt_primary.stats(),
|
||||||
one_way_delay: OneWayDelayStats {
|
raw: self.rtt_raw.stats(),
|
||||||
send_delay: self.send_delay.stats(),
|
adjusted: self.rtt_adjusted.stats(),
|
||||||
receive_delay: self.receive_delay.stats(),
|
}
|
||||||
},
|
}
|
||||||
server_processing: ServerProcessingStats {
|
|
||||||
processing: self.server_processing.stats(),
|
fn ipdv_stats(&self) -> IpdvStats {
|
||||||
},
|
IpdvStats {
|
||||||
|
round_trip: self.ipdv_round_trip.stats(),
|
||||||
|
send: self.ipdv_send.stats(),
|
||||||
|
receive: self.ipdv_receive.stats(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn one_way_delay_stats(&self) -> OneWayDelayStats {
|
||||||
|
OneWayDelayStats {
|
||||||
|
send_delay: self.send_delay.stats(),
|
||||||
|
receive_delay: self.receive_delay.stats(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn server_processing_stats(&self) -> ServerProcessingStats {
|
||||||
|
ServerProcessingStats {
|
||||||
|
processing: self.server_processing.stats(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user