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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, | 227 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, |
228 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, | 228 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, |
229 { StatsReport::kStatsValueNameMinPlayoutDelayMs, | 229 { StatsReport::kStatsValueNameMinPlayoutDelayMs, |
230 info.min_playout_delay_ms }, | 230 info.min_playout_delay_ms }, |
231 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, | 231 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, |
232 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, | 232 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, |
233 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, | 233 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, |
234 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, | 234 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, |
235 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, | 235 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, |
236 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, | 236 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, |
| 237 { StatsReport::kStatsValueNameFramesDecoded, info.frames_decoded }, |
237 }; | 238 }; |
238 | 239 |
239 for (const auto& i : ints) | 240 for (const auto& i : ints) |
240 report->AddInt(i.name, i.value); | 241 report->AddInt(i.name, i.value); |
241 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); | 242 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); |
242 } | 243 } |
243 | 244 |
244 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { | 245 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { |
245 ExtractCommonSendProperties(info, report); | 246 ExtractCommonSendProperties(info, report); |
246 | 247 |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 StatsReport* report = entry.second; | 973 StatsReport* report = entry.second; |
973 report->set_timestamp(stats_gathering_started_); | 974 report->set_timestamp(stats_gathering_started_); |
974 } | 975 } |
975 } | 976 } |
976 | 977 |
977 void StatsCollector::ClearUpdateStatsCacheForTest() { | 978 void StatsCollector::ClearUpdateStatsCacheForTest() { |
978 stats_gathering_started_ = 0; | 979 stats_gathering_started_ = 0; |
979 } | 980 } |
980 | 981 |
981 } // namespace webrtc | 982 } // namespace webrtc |
OLD | NEW |