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

Unified Diff: webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc

Issue 1178053002: Add UMA logging for target audio bitrate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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/audio_coding/main/acm2/codec_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b659649096e8c583400698e16a5b1723d3b4c4dc..d914a8e19ca309ae81976c53b3226e34812cef52 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,7 +289,8 @@ int AudioCodingModuleImpl::SendBitrate() const {
void AudioCodingModuleImpl::SetBitRate(int bitrate_bps) {
CriticalSectionScoped lock(acm_crit_sect_);
-
+ RTC_HISTOGRAM_COUNTS_100("WebRTC.Audio.TargetBitrateInKbps",
kwiberg-webrtc 2015/06/11 10:03:13 Define a constant for this string? You use it in 3
hlundin-webrtc 2015/06/11 10:11:48 Yes, that might be a good idea. Any suggestion on
kwiberg-webrtc 2015/06/11 11:01:25 I think my preferred solution would be for all of
+ bitrate_bps / 1000);
if (codec_manager_.CurrentEncoder()) {
codec_manager_.CurrentEncoder()->SetTargetBitrate(bitrate_bps);
kwiberg-webrtc 2015/06/11 10:03:13 If this method would just return the bitrate the e
hlundin-webrtc 2015/06/11 10:11:48 That could be useful. But it would mean that it mu
kwiberg-webrtc 2015/06/11 11:01:25 Yes---but the implementation would be trivial, so
}
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/main/acm2/codec_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698