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

Side by Side Diff: webrtc/modules/congestion_controller/congestion_controller.cc

Issue 2695923004: Add logging of delay-based bandwidth estimate. (Closed)
Patch Set: Only log BWE update if bitrate or state has changed. Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 observer_(observer), 162 observer_(observer),
163 packet_router_(packet_router), 163 packet_router_(packet_router),
164 pacer_(std::move(pacer)), 164 pacer_(std::move(pacer)),
165 bitrate_controller_( 165 bitrate_controller_(
166 BitrateController::CreateBitrateController(clock_, event_log)), 166 BitrateController::CreateBitrateController(clock_, event_log)),
167 probe_controller_(new ProbeController(pacer_.get(), clock_)), 167 probe_controller_(new ProbeController(pacer_.get(), clock_)),
168 retransmission_rate_limiter_( 168 retransmission_rate_limiter_(
169 new RateLimiter(clock, kRetransmitWindowSizeMs)), 169 new RateLimiter(clock, kRetransmitWindowSizeMs)),
170 remote_bitrate_estimator_(remote_bitrate_observer, clock_), 170 remote_bitrate_estimator_(remote_bitrate_observer, clock_),
171 remote_estimator_proxy_(clock_, packet_router_), 171 remote_estimator_proxy_(clock_, packet_router_),
172 transport_feedback_adapter_(clock_, bitrate_controller_.get()), 172 transport_feedback_adapter_(event_log, clock_, bitrate_controller_.get()),
173 min_bitrate_bps_(congestion_controller::GetMinBitrateBps()), 173 min_bitrate_bps_(congestion_controller::GetMinBitrateBps()),
174 max_bitrate_bps_(0), 174 max_bitrate_bps_(0),
175 last_reported_bitrate_bps_(0), 175 last_reported_bitrate_bps_(0),
176 last_reported_fraction_loss_(0), 176 last_reported_fraction_loss_(0),
177 last_reported_rtt_(0), 177 last_reported_rtt_(0),
178 network_state_(kNetworkUp) { 178 network_state_(kNetworkUp) {
179 transport_feedback_adapter_.InitBwe(); 179 transport_feedback_adapter_.InitBwe();
180 transport_feedback_adapter_.SetMinBitrate(min_bitrate_bps_); 180 transport_feedback_adapter_.SetMinBitrate(min_bitrate_bps_);
181 } 181 }
182 182
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 bool CongestionController::IsSendQueueFull() const { 370 bool CongestionController::IsSendQueueFull() const {
371 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 371 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
372 } 372 }
373 373
374 bool CongestionController::IsNetworkDown() const { 374 bool CongestionController::IsNetworkDown() const {
375 rtc::CritScope cs(&critsect_); 375 rtc::CritScope cs(&critsect_);
376 return network_state_ == kNetworkDown; 376 return network_state_ == kNetworkDown;
377 } 377 }
378 378
379 } // namespace webrtc 379 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/congestion_controller/delay_based_bwe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698