Add new ANA stats to the old GetStats() to count the number of actions taken by each controller.

This CL only wires up the new stats but does not set the values yet. This will be added in a follow-up CL.

BUG=webrtc:8127

Review-Url: https://codereview.webrtc.org/3011623002
Cr-Commit-Position: refs/heads/master@{#19751}
This commit is contained in:
ivoc
2017-09-08 08:13:19 -07:00
committed by Commit Bot
parent 01410dcc99
commit e1198e068b
27 changed files with 217 additions and 1 deletions

View File

@ -204,6 +204,8 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const override;
ANAStats GetANAStats() const override;
private:
struct InputData {
uint32_t input_timestamp;
@ -1273,6 +1275,14 @@ void AudioCodingModuleImpl::GetDecodingCallStatistics(
receiver_.GetDecodingCallStatistics(call_stats);
}
ANAStats AudioCodingModuleImpl::GetANAStats() const {
rtc::CritScope lock(&acm_crit_sect_);
if (encoder_stack_)
return encoder_stack_->GetANAStats();
// If no encoder is set, return default stats.
return ANAStats();
}
} // namespace
AudioCodingModule::Config::Config()