| Index: net/quic/congestion_control/send_algorithm_simulator.h
|
| diff --git a/net/quic/congestion_control/send_algorithm_simulator.h b/net/quic/congestion_control/send_algorithm_simulator.h
|
| index 4234e66157b0b0e355b3ff6a0cb1001fdfc81f75..4ecb83338fdb04a5ce2ea0dd0f28bcf0507dd05d 100644
|
| --- a/net/quic/congestion_control/send_algorithm_simulator.h
|
| +++ b/net/quic/congestion_control/send_algorithm_simulator.h
|
| @@ -40,10 +40,13 @@ class SendAlgorithmSimulator {
|
| }
|
|
|
| std::string DebugString() {
|
| - return StringPrintf("observed goodput(bytes/s):%" PRId64 " cwnd:%" PRIu64
|
| + return StringPrintf("observed goodput(bytes/s):%" PRId64
|
| + " loss rate:%f"
|
| + " cwnd:%" PRIu64
|
| " max_cwnd:%" PRIu64 " min_cwnd:%" PRIu64
|
| " max_cwnd_drop:%" PRIu64,
|
| last_transfer_bandwidth.ToBytesPerSecond(),
|
| + last_transfer_loss_rate,
|
| send_algorithm->GetCongestionWindow(),
|
| max_cwnd, min_cwnd, max_cwnd_drop);
|
| }
|
| @@ -65,6 +68,7 @@ class SendAlgorithmSimulator {
|
| QuicByteCount last_cwnd;
|
|
|
| QuicBandwidth last_transfer_bandwidth;
|
| + float last_transfer_loss_rate;
|
| };
|
|
|
| struct Transfer {
|
| @@ -72,12 +76,14 @@ class SendAlgorithmSimulator {
|
| : sender(sender),
|
| num_bytes(num_bytes),
|
| bytes_acked(0),
|
| + bytes_lost(0),
|
| bytes_in_flight(0),
|
| start_time(start_time) {}
|
|
|
| Sender* sender;
|
| QuicByteCount num_bytes;
|
| QuicByteCount bytes_acked;
|
| + QuicByteCount bytes_lost;
|
| QuicByteCount bytes_in_flight;
|
| QuicTime start_time;
|
| };
|
|
|