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

Side by Side Diff: webrtc/api/statscollector.cc

Issue 2423823003: Implement framesDecoded stat in video receive ssrc stats. (Closed)
Patch Set: More unittests. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/statscollector_unittest.cc » ('j') | webrtc/media/base/mediachannel.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, 221 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms },
222 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, 222 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms },
223 { StatsReport::kStatsValueNameMinPlayoutDelayMs, 223 { StatsReport::kStatsValueNameMinPlayoutDelayMs,
224 info.min_playout_delay_ms }, 224 info.min_playout_delay_ms },
225 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, 225 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent },
226 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, 226 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost },
227 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, 227 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd },
228 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, 228 { StatsReport::kStatsValueNamePlisSent, info.plis_sent },
229 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, 229 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms },
230 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, 230 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms },
231 { StatsReport::kStatsValueNameFramesDecoded, info.frames_decoded },
231 }; 232 };
232 233
233 for (const auto& i : ints) 234 for (const auto& i : ints)
234 report->AddInt(i.name, i.value); 235 report->AddInt(i.name, i.value);
235 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); 236 report->AddString(StatsReport::kStatsValueNameMediaType, "video");
236 } 237 }
237 238
238 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { 239 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) {
239 ExtractCommonSendProperties(info, report); 240 ExtractCommonSendProperties(info, report);
240 241
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 StatsReport* report = entry.second; 966 StatsReport* report = entry.second;
966 report->set_timestamp(stats_gathering_started_); 967 report->set_timestamp(stats_gathering_started_);
967 } 968 }
968 } 969 }
969 970
970 void StatsCollector::ClearUpdateStatsCacheForTest() { 971 void StatsCollector::ClearUpdateStatsCacheForTest() {
971 stats_gathering_started_ = 0; 972 stats_gathering_started_ = 0;
972 } 973 }
973 974
974 } // namespace webrtc 975 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/statscollector_unittest.cc » ('j') | webrtc/media/base/mediachannel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698