| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 { StatsReport::kStatsValueNameFrameRateReceived, info.framerate_rcvd }, | 212 { StatsReport::kStatsValueNameFrameRateReceived, info.framerate_rcvd }, |
| 213 { StatsReport::kStatsValueNameFrameWidthReceived, info.frame_width }, | 213 { StatsReport::kStatsValueNameFrameWidthReceived, info.frame_width }, |
| 214 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, | 214 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, |
| 215 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, | 215 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, |
| 216 { StatsReport::kStatsValueNameMinPlayoutDelayMs, | 216 { StatsReport::kStatsValueNameMinPlayoutDelayMs, |
| 217 info.min_playout_delay_ms }, | 217 info.min_playout_delay_ms }, |
| 218 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, | 218 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, |
| 219 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, | 219 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, |
| 220 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, | 220 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, |
| 221 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, | 221 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, |
| 222 { StatsReport::kStatsValueNameQpReceived, info.qp }, |
| 222 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, | 223 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, |
| 223 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, | 224 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 for (const auto& i : ints) | 227 for (const auto& i : ints) |
| 227 report->AddInt(i.name, i.value); | 228 report->AddInt(i.name, i.value); |
| 228 } | 229 } |
| 229 | 230 |
| 230 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { | 231 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { |
| 231 ExtractCommonSendProperties(info, report); | 232 ExtractCommonSendProperties(info, report); |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 StatsReport* report = entry.second; | 937 StatsReport* report = entry.second; |
| 937 report->set_timestamp(stats_gathering_started_); | 938 report->set_timestamp(stats_gathering_started_); |
| 938 } | 939 } |
| 939 } | 940 } |
| 940 | 941 |
| 941 void StatsCollector::ClearUpdateStatsCacheForTest() { | 942 void StatsCollector::ClearUpdateStatsCacheForTest() { |
| 942 stats_gathering_started_ = 0; | 943 stats_gathering_started_ = 0; |
| 943 } | 944 } |
| 944 | 945 |
| 945 } // namespace webrtc | 946 } // namespace webrtc |
| OLD | NEW |