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

Side by Side Diff: talk/app/webrtc/statscollector.cc

Issue 1264693003: Add QP stats for sent video streams to StatsReport. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add unit tests Created 5 years 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 | talk/app/webrtc/statstypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 { StatsReport::kStatsValueNameFrameHeightInput, info.input_frame_height }, 246 { StatsReport::kStatsValueNameFrameHeightInput, info.input_frame_height },
247 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, 247 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height },
248 { StatsReport::kStatsValueNameFrameRateInput, info.framerate_input }, 248 { StatsReport::kStatsValueNameFrameRateInput, info.framerate_input },
249 { StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent }, 249 { StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent },
250 { StatsReport::kStatsValueNameFrameWidthInput, info.input_frame_width }, 250 { StatsReport::kStatsValueNameFrameWidthInput, info.input_frame_width },
251 { StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width }, 251 { StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width },
252 { StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd }, 252 { StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd },
253 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, 253 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost },
254 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent }, 254 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent },
255 { StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd }, 255 { StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd },
256 { StatsReport::kStatsValueNameQpSent, info.qp },
256 }; 257 };
257 258
258 for (const auto& i : ints) 259 for (const auto& i : ints)
259 report->AddInt(i.name, i.value); 260 report->AddInt(i.name, i.value);
260 } 261 }
261 262
262 void ExtractStats(const cricket::BandwidthEstimationInfo& info, 263 void ExtractStats(const cricket::BandwidthEstimationInfo& info,
263 double stats_gathering_started, 264 double stats_gathering_started,
264 PeerConnectionInterface::StatsOutputLevel level, 265 PeerConnectionInterface::StatsOutputLevel level,
265 StatsReport* report) { 266 StatsReport* report) {
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 StatsReport* report = entry.second; 940 StatsReport* report = entry.second;
940 report->set_timestamp(stats_gathering_started_); 941 report->set_timestamp(stats_gathering_started_);
941 } 942 }
942 } 943 }
943 944
944 void StatsCollector::ClearUpdateStatsCacheForTest() { 945 void StatsCollector::ClearUpdateStatsCacheForTest() {
945 stats_gathering_started_ = 0; 946 stats_gathering_started_ = 0;
946 } 947 }
947 948
948 } // namespace webrtc 949 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/statstypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698