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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 info.encode_usage_percent }, | 254 info.encode_usage_percent }, |
255 { StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd }, | 255 { StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd }, |
256 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, | 256 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, |
257 { StatsReport::kStatsValueNameFrameRateInput, info.framerate_input }, | 257 { StatsReport::kStatsValueNameFrameRateInput, info.framerate_input }, |
258 { StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent }, | 258 { StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent }, |
259 { StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width }, | 259 { StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width }, |
260 { StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd }, | 260 { StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd }, |
261 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, | 261 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, |
262 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent }, | 262 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent }, |
263 { StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd }, | 263 { StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd }, |
| 264 { StatsReport::kStatsValueNameFramesEncoded, info.frames_encoded }, |
264 }; | 265 }; |
265 | 266 |
266 for (const auto& i : ints) | 267 for (const auto& i : ints) |
267 report->AddInt(i.name, i.value); | 268 report->AddInt(i.name, i.value); |
268 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); | 269 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); |
269 } | 270 } |
270 | 271 |
271 void ExtractStats(const cricket::BandwidthEstimationInfo& info, | 272 void ExtractStats(const cricket::BandwidthEstimationInfo& info, |
272 double stats_gathering_started, | 273 double stats_gathering_started, |
273 PeerConnectionInterface::StatsOutputLevel level, | 274 PeerConnectionInterface::StatsOutputLevel level, |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 StatsReport* report = entry.second; | 965 StatsReport* report = entry.second; |
965 report->set_timestamp(stats_gathering_started_); | 966 report->set_timestamp(stats_gathering_started_); |
966 } | 967 } |
967 } | 968 } |
968 | 969 |
969 void StatsCollector::ClearUpdateStatsCacheForTest() { | 970 void StatsCollector::ClearUpdateStatsCacheForTest() { |
970 stats_gathering_started_ = 0; | 971 stats_gathering_started_ = 0; |
971 } | 972 } |
972 | 973 |
973 } // namespace webrtc | 974 } // namespace webrtc |
OLD | NEW |