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

Unified Diff: webrtc/audio/audio_send_stream.cc

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Initial version Created 3 years, 4 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
Index: webrtc/audio/audio_send_stream.cc
diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc
index 5bf6f2b8072a4d6199255c65149c6ff072d34723..7d0df4445de102fe93a3417fce5dd22eb13e3640 100644
--- a/webrtc/audio/audio_send_stream.cc
+++ b/webrtc/audio/audio_send_stream.cc
@@ -334,6 +334,16 @@ webrtc::AudioSendStream::Stats AudioSendStream::GetStats() const {
static_cast<internal::AudioState*>(audio_state_.get());
stats.typing_noise_detected = audio_state->typing_noise_detected();
+ auto audio_encoder_stats = channel_proxy_->GetAudioEncoderStatistics();
+ stats.ana_bitrate_action_counter =
+ audio_encoder_stats.ana_bitrate_action_counter;
+ stats.ana_channel_action_counter =
+ audio_encoder_stats.ana_channel_action_counter;
+ stats.ana_dtx_action_counter = audio_encoder_stats.ana_dtx_action_counter;
+ stats.ana_fec_action_counter = audio_encoder_stats.ana_fec_action_counter;
+ stats.ana_frame_length_action_counter =
+ audio_encoder_stats.ana_frame_length_action_counter;
+
return stats;
}

Powered by Google App Engine
This is Rietveld 408576698