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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2559953002: Log audio network adapter decisions in event log. (Closed)
Patch Set: Log Ana Created 4 years 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
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index c29d60fd0a6227a4c61b03b97763d9151b634158..188b69ef7bbf9e5b4109ea904dc9753210654522 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -140,6 +140,20 @@ class RtcEventLogProxy final : public webrtc::RtcEventLog {
}
}
+ void LogAnaDecisionEvent(rtc::Optional<int> bitrate_bps,
+ rtc::Optional<int> frame_length_ms,
+ rtc::Optional<float> uplink_packet_loss_fraction,
+ rtc::Optional<bool> enable_fec,
+ rtc::Optional<bool> enable_dtx,
+ rtc::Optional<size_t> num_channels) override {
+ rtc::CritScope lock(&crit_);
+ if (event_log_) {
+ event_log_->LogAnaDecisionEvent(bitrate_bps, frame_length_ms,
+ uplink_packet_loss_fraction, enable_fec,
+ enable_dtx, num_channels);
+ }
+ }
+
void SetEventLog(RtcEventLog* event_log) {
rtc::CritScope lock(&crit_);
event_log_ = event_log;

Powered by Google App Engine
This is Rietveld 408576698