Add new UMA metric for NetEq target buffer delay

The UMA metric will log the same information that goes into the
googPreferredJitterBufferMs stat.

Bug: webrtc:8488
Change-Id: I4e4e1e362dd42377105d52d2c4cd49c1ecb1a90d
Reviewed-on: https://webrtc-review.googlesource.com/26740
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20923}
This commit is contained in:
Henrik Lundin
2017-11-29 09:14:04 +01:00
committed by Commit Bot
parent 4e70a72571
commit abbff89b29
8 changed files with 25 additions and 3 deletions

View File

@ -208,7 +208,7 @@ class NetEq {
// Returns the current target delay in ms. This includes any extra delay
// requested through SetMinimumDelay.
virtual int TargetDelayMs() = 0;
virtual int TargetDelayMs() const = 0;
// Returns the current total delay (packet buffer and sync buffer) in ms.
virtual int CurrentDelayMs() const = 0;

View File

@ -311,7 +311,7 @@ int NetEqImpl::SetTargetDelay() {
return kNotImplemented;
}
int NetEqImpl::TargetDelayMs() {
int NetEqImpl::TargetDelayMs() const {
rtc::CritScope lock(&crit_sect_);
RTC_DCHECK(delay_manager_.get());
// The value from TargetLevel() is in number of packets, represented in Q8.

View File

@ -161,7 +161,7 @@ class NetEqImpl : public webrtc::NetEq {
int SetTargetDelay() override;
int TargetDelayMs() override;
int TargetDelayMs() const override;
int CurrentDelayMs() const override;