OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |