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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 365833002: QUIC varz to track measured and predicted bandwidth and rtt histograms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index a9ca66c0cfb124e79916b50f93dd1bada6e64c7f..95fa6cccc3be38795477a0e957dcb612c5f97b41 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -196,6 +196,10 @@ QuicBandwidth TcpCubicSender::BandwidthEstimate() const {
rtt_stats_->SmoothedRtt());
}
+bool TcpCubicSender::HasReliableBandwidthEstimate() const {
+ return !InSlowStart() && !InRecovery();
+}
+
QuicTime::Delta TcpCubicSender::RetransmissionDelay() const {
if (!rtt_stats_->HasUpdates()) {
return QuicTime::Delta::Zero();
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698