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

Unified Diff: webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc

Issue 2933243003: Plot acknowledged bitrate when compiled with rtc_enable_bwe_test_logging. (Closed)
Patch Set: Created 3 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 | « no previous file | webrtc/modules/remote_bitrate_estimator/overuse_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc
diff --git a/webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc b/webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc
index 9df378c64b8f24165703eb738e5078b6b7db5fb3..3fa3ac9995b0cbeb168ff2e6466ef6cdcfe49178 100644
--- a/webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc
+++ b/webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.cc
@@ -12,6 +12,7 @@
#include <cmath>
+#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
namespace webrtc {
@@ -73,6 +74,8 @@ void AcknowledgedBitrateEstimator::Update(int64_t now_ms, int bytes) {
(sample_var + pred_bitrate_estimate_var);
bitrate_estimate_var_ = sample_var * pred_bitrate_estimate_var /
(sample_var + pred_bitrate_estimate_var);
+ BWE_TEST_LOGGING_PLOT(1, "acknowledged_bitrate", now_ms,
+ bitrate_estimate_ * 1000);
}
float AcknowledgedBitrateEstimator::UpdateWindow(int64_t now_ms,
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/overuse_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698