Index: webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc |
index 4e665ea45525e3db61fb6ef7a3ebce74e53478e5..1ce33a80e32098e70f411f4f98e817f6e2fd75dd 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc |
@@ -23,6 +23,7 @@ |
#include "webrtc/modules/audio_coding/main/acm2/call_statistics.h" |
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h" |
#include "webrtc/system_wrappers/interface/logging.h" |
+#include "webrtc/system_wrappers/interface/metrics.h" |
#include "webrtc/system_wrappers/interface/rw_lock_wrapper.h" |
#include "webrtc/system_wrappers/interface/trace.h" |
#include "webrtc/typedefs.h" |
@@ -288,9 +289,11 @@ int AudioCodingModuleImpl::SendBitrate() const { |
void AudioCodingModuleImpl::SetBitRate(int bitrate_bps) { |
CriticalSectionScoped lock(acm_crit_sect_); |
- |
if (codec_manager_.CurrentEncoder()) { |
codec_manager_.CurrentEncoder()->SetTargetBitrate(bitrate_bps); |
+ RTC_HISTOGRAM_COUNTS_100( |
+ HISTOGRAM_NAME_AUDIO_TARGET_BITRATE_IN_KBPS, |
+ codec_manager_.CurrentEncoder()->GetTargetBitrate() / 1000); |
} |
} |