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

Unified Diff: webrtc/pc/statscollector.cc

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Fix for failing test. Created 3 years, 3 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 | « webrtc/modules/audio_coding/include/audio_coding_module.h ('k') | webrtc/pc/statscollector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/statscollector.cc
diff --git a/webrtc/pc/statscollector.cc b/webrtc/pc/statscollector.cc
index 08cf464568936998e1e6eaa4c2feb04e0ff86aa0..b96428353aae280c83bdd301a204491dd1f60168 100644
--- a/webrtc/pc/statscollector.cc
+++ b/webrtc/pc/statscollector.cc
@@ -224,6 +224,26 @@ void ExtractStats(const cricket::VoiceSenderInfo& info, StatsReport* report) {
}
}
report->AddString(StatsReport::kStatsValueNameMediaType, "audio");
+ if (info.ana_statistics.bitrate_action_counter) {
+ report->AddInt(StatsReport::kStatsValueNameAnaBitrateActionCounter,
+ *info.ana_statistics.bitrate_action_counter);
+ }
+ if (info.ana_statistics.channel_action_counter) {
+ report->AddInt(StatsReport::kStatsValueNameAnaChannelActionCounter,
+ *info.ana_statistics.channel_action_counter);
+ }
+ if (info.ana_statistics.dtx_action_counter) {
+ report->AddInt(StatsReport::kStatsValueNameAnaDtxActionCounter,
+ *info.ana_statistics.dtx_action_counter);
+ }
+ if (info.ana_statistics.fec_action_counter) {
+ report->AddInt(StatsReport::kStatsValueNameAnaFecActionCounter,
+ *info.ana_statistics.fec_action_counter);
+ }
+ if (info.ana_statistics.frame_length_action_counter) {
+ report->AddInt(StatsReport::kStatsValueNameAnaFrameLengthActionCounter,
+ *info.ana_statistics.frame_length_action_counter);
+ }
}
void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) {
« no previous file with comments | « webrtc/modules/audio_coding/include/audio_coding_module.h ('k') | webrtc/pc/statscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698