Add and modify a few ANA stats.

This CL adds seperate counters for ANA frame length increases and decreases, which gives more insight into what actions are taken. In addition, a new stat is added to track the sum of the uplink packet loss fraction that is set by the ANA FEC controller.

BUG=webrtc:8127

Review-Url: https://codereview.webrtc.org/3007243002
Cr-Commit-Position: refs/heads/master@{#19756}
This commit is contained in:
ivoc
2017-09-08 13:24:21 -07:00
committed by Commit Bot
parent 7bd1f1bb5b
commit 0d0b912128
7 changed files with 72 additions and 21 deletions

View File

@ -298,8 +298,12 @@ TEST(AudioNetworkAdaptorImplTest, TestANAStats) {
default_stats.channel_action_counter);
EXPECT_EQ(ana_stats.dtx_action_counter, default_stats.dtx_action_counter);
EXPECT_EQ(ana_stats.fec_action_counter, default_stats.fec_action_counter);
EXPECT_EQ(ana_stats.frame_length_action_counter,
default_stats.frame_length_action_counter);
EXPECT_EQ(ana_stats.frame_length_increase_counter,
default_stats.frame_length_increase_counter);
EXPECT_EQ(ana_stats.frame_length_decrease_counter,
default_stats.frame_length_decrease_counter);
EXPECT_EQ(ana_stats.uplink_packet_loss_fraction,
default_stats.uplink_packet_loss_fraction);
}
} // namespace webrtc