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

Side by Side Diff: net/quic/core/congestion_control/bbr_sender.cc

Issue 2823283002: Add flag counter for FLAGS_quic_reloadable_flag_quic_bbr_bandwidth_resumption (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/congestion_control/bbr_sender.h" 5 #include "net/quic/core/congestion_control/bbr_sender.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "net/quic/core/congestion_control/rtt_stats.h" 10 #include "net/quic/core/congestion_control/rtt_stats.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 } 210 }
211 211
212 void BbrSender::ResumeConnectionState( 212 void BbrSender::ResumeConnectionState(
213 const CachedNetworkParameters& cached_network_params, 213 const CachedNetworkParameters& cached_network_params,
214 bool max_bandwidth_resumption) { 214 bool max_bandwidth_resumption) {
215 if (!FLAGS_quic_reloadable_flag_quic_bbr_bandwidth_resumption) { 215 if (!FLAGS_quic_reloadable_flag_quic_bbr_bandwidth_resumption) {
216 return; 216 return;
217 } 217 }
218 218
219 QUIC_FLAG_COUNT(quic_reloadable_flag_quic_bbr_bandwidth_resumption);
220
219 QuicBandwidth bandwidth = QuicBandwidth::FromBytesPerSecond( 221 QuicBandwidth bandwidth = QuicBandwidth::FromBytesPerSecond(
220 max_bandwidth_resumption 222 max_bandwidth_resumption
221 ? cached_network_params.max_bandwidth_estimate_bytes_per_second() 223 ? cached_network_params.max_bandwidth_estimate_bytes_per_second()
222 : cached_network_params.bandwidth_estimate_bytes_per_second()); 224 : cached_network_params.bandwidth_estimate_bytes_per_second());
223 QuicTime::Delta rtt = 225 QuicTime::Delta rtt =
224 QuicTime::Delta::FromMilliseconds(cached_network_params.min_rtt_ms()); 226 QuicTime::Delta::FromMilliseconds(cached_network_params.min_rtt_ms());
225 227
226 max_bandwidth_.Update(bandwidth, round_trip_count_); 228 max_bandwidth_.Update(bandwidth, round_trip_count_);
227 if (!rtt.IsZero() && (min_rtt_ > rtt || min_rtt_.IsZero())) { 229 if (!rtt.IsZero() && (min_rtt_ > rtt || min_rtt_.IsZero())) {
228 min_rtt_ = rtt; 230 min_rtt_ = rtt;
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() 737 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue()
736 << std::endl; 738 << std::endl;
737 739
738 os << "Last sample is app-limited: " 740 os << "Last sample is app-limited: "
739 << (state.last_sample_is_app_limited ? "yes" : "no"); 741 << (state.last_sample_is_app_limited ? "yes" : "no");
740 742
741 return os; 743 return os;
742 } 744 }
743 745
744 } // namespace net 746 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698