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