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

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

Issue 2828163005: Convert QUIC non-feature flags to the old syntax, for consistency. (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 | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 min_rtt_(QuicTime::Delta::Zero()), 92 min_rtt_(QuicTime::Delta::Zero()),
93 min_rtt_timestamp_(QuicTime::Zero()), 93 min_rtt_timestamp_(QuicTime::Zero()),
94 congestion_window_(initial_tcp_congestion_window * kDefaultTCPMSS), 94 congestion_window_(initial_tcp_congestion_window * kDefaultTCPMSS),
95 initial_congestion_window_(initial_tcp_congestion_window * 95 initial_congestion_window_(initial_tcp_congestion_window *
96 kDefaultTCPMSS), 96 kDefaultTCPMSS),
97 max_congestion_window_(max_tcp_congestion_window * kDefaultTCPMSS), 97 max_congestion_window_(max_tcp_congestion_window * kDefaultTCPMSS),
98 pacing_rate_(QuicBandwidth::Zero()), 98 pacing_rate_(QuicBandwidth::Zero()),
99 pacing_gain_(1), 99 pacing_gain_(1),
100 congestion_window_gain_(1), 100 congestion_window_gain_(1),
101 congestion_window_gain_constant_( 101 congestion_window_gain_constant_(
102 static_cast<float>(GetQuicFlag(FLAGS_quic_bbr_cwnd_gain))), 102 static_cast<float>(FLAGS_quic_bbr_cwnd_gain)),
103 rtt_variance_weight_( 103 rtt_variance_weight_(
104 static_cast<float>(GetQuicFlag(FLAGS_quic_bbr_rtt_variation_weight))), 104 static_cast<float>(FLAGS_quic_bbr_rtt_variation_weight)),
105 num_startup_rtts_(kRoundTripsWithoutGrowthBeforeExitingStartup), 105 num_startup_rtts_(kRoundTripsWithoutGrowthBeforeExitingStartup),
106 congestion_window_gain_for_slow_delivery_(static_cast<float>( 106 congestion_window_gain_for_slow_delivery_(
107 GetQuicFlag(FLAGS_quic_bbr_slow_delivery_cwnd_gain))), 107 static_cast<float>(FLAGS_quic_bbr_slow_delivery_cwnd_gain)),
108 threshold_multiplier_for_slow_delivery_(static_cast<float>( 108 threshold_multiplier_for_slow_delivery_(static_cast<float>(
109 GetQuicFlag(FLAGS_quic_bbr_slow_delivery_threshold_multiplier))), 109 FLAGS_quic_bbr_slow_delivery_threshold_multiplier)),
110 cycle_current_offset_(0), 110 cycle_current_offset_(0),
111 last_cycle_start_(QuicTime::Zero()), 111 last_cycle_start_(QuicTime::Zero()),
112 is_at_full_bandwidth_(false), 112 is_at_full_bandwidth_(false),
113 rounds_without_bandwidth_gain_(0), 113 rounds_without_bandwidth_gain_(0),
114 bandwidth_at_last_round_(QuicBandwidth::Zero()), 114 bandwidth_at_last_round_(QuicBandwidth::Zero()),
115 exiting_quiescence_(false), 115 exiting_quiescence_(false),
116 exit_probe_rtt_at_(QuicTime::Zero()), 116 exit_probe_rtt_at_(QuicTime::Zero()),
117 probe_rtt_round_passed_(false), 117 probe_rtt_round_passed_(false),
118 last_sample_is_app_limited_(false), 118 last_sample_is_app_limited_(false),
119 recovery_state_(NOT_IN_RECOVERY), 119 recovery_state_(NOT_IN_RECOVERY),
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() 782 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue()
783 << std::endl; 783 << std::endl;
784 784
785 os << "Last sample is app-limited: " 785 os << "Last sample is app-limited: "
786 << (state.last_sample_is_app_limited ? "yes" : "no"); 786 << (state.last_sample_is_app_limited ? "yes" : "no");
787 787
788 return os; 788 return os;
789 } 789 }
790 790
791 } // namespace net 791 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698