Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: net/quic/congestion_control/send_algorithm_simulator.h

Issue 399763004: QUIC test only change to add track the observed loss rate in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698