| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 *info.ana_statistics.channel_action_counter); | 233 *info.ana_statistics.channel_action_counter); |
| 234 } | 234 } |
| 235 if (info.ana_statistics.dtx_action_counter) { | 235 if (info.ana_statistics.dtx_action_counter) { |
| 236 report->AddInt(StatsReport::kStatsValueNameAnaDtxActionCounter, | 236 report->AddInt(StatsReport::kStatsValueNameAnaDtxActionCounter, |
| 237 *info.ana_statistics.dtx_action_counter); | 237 *info.ana_statistics.dtx_action_counter); |
| 238 } | 238 } |
| 239 if (info.ana_statistics.fec_action_counter) { | 239 if (info.ana_statistics.fec_action_counter) { |
| 240 report->AddInt(StatsReport::kStatsValueNameAnaFecActionCounter, | 240 report->AddInt(StatsReport::kStatsValueNameAnaFecActionCounter, |
| 241 *info.ana_statistics.fec_action_counter); | 241 *info.ana_statistics.fec_action_counter); |
| 242 } | 242 } |
| 243 if (info.ana_statistics.frame_length_action_counter) { | 243 if (info.ana_statistics.frame_length_increase_counter) { |
| 244 report->AddInt(StatsReport::kStatsValueNameAnaFrameLengthActionCounter, | 244 report->AddInt(StatsReport::kStatsValueNameAnaFrameLengthIncreaseCounter, |
| 245 *info.ana_statistics.frame_length_action_counter); | 245 *info.ana_statistics.frame_length_increase_counter); |
| 246 } |
| 247 if (info.ana_statistics.frame_length_decrease_counter) { |
| 248 report->AddInt(StatsReport::kStatsValueNameAnaFrameLengthDecreaseCounter, |
| 249 *info.ana_statistics.frame_length_decrease_counter); |
| 250 } |
| 251 if (info.ana_statistics.uplink_packet_loss_fraction) { |
| 252 report->AddFloat(StatsReport::kStatsValueNameAnaUplinkPacketLossFraction, |
| 253 *info.ana_statistics.uplink_packet_loss_fraction); |
| 246 } | 254 } |
| 247 } | 255 } |
| 248 | 256 |
| 249 void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) { | 257 void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) { |
| 250 ExtractCommonReceiveProperties(info, report); | 258 ExtractCommonReceiveProperties(info, report); |
| 251 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, | 259 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, |
| 252 info.decoder_implementation_name); | 260 info.decoder_implementation_name); |
| 253 report->AddInt64(StatsReport::kStatsValueNameBytesReceived, | 261 report->AddInt64(StatsReport::kStatsValueNameBytesReceived, |
| 254 info.bytes_rcvd); | 262 info.bytes_rcvd); |
| 255 if (info.capture_start_ntp_time_ms >= 0) { | 263 if (info.capture_start_ntp_time_ms >= 0) { |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 StatsReport* report = entry.second; | 1061 StatsReport* report = entry.second; |
| 1054 report->set_timestamp(stats_gathering_started_); | 1062 report->set_timestamp(stats_gathering_started_); |
| 1055 } | 1063 } |
| 1056 } | 1064 } |
| 1057 | 1065 |
| 1058 void StatsCollector::ClearUpdateStatsCacheForTest() { | 1066 void StatsCollector::ClearUpdateStatsCacheForTest() { |
| 1059 stats_gathering_started_ = 0; | 1067 stats_gathering_started_ = 0; |
| 1060 } | 1068 } |
| 1061 | 1069 |
| 1062 } // namespace webrtc | 1070 } // namespace webrtc |
| OLD | NEW |