| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 fir_count(other.fir_count), | 340 fir_count(other.fir_count), |
| 341 pli_count(other.pli_count), | 341 pli_count(other.pli_count), |
| 342 nack_count(other.nack_count), | 342 nack_count(other.nack_count), |
| 343 sli_count(other.sli_count) { | 343 sli_count(other.sli_count) { |
| 344 } | 344 } |
| 345 | 345 |
| 346 RTCRTPStreamStats::~RTCRTPStreamStats() { | 346 RTCRTPStreamStats::~RTCRTPStreamStats() { |
| 347 } | 347 } |
| 348 | 348 |
| 349 WEBRTC_RTCSTATS_IMPL( | 349 WEBRTC_RTCSTATS_IMPL( |
| 350 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp", | |
| 351 &packets_received, | |
| 352 &bytes_received, | |
| 353 &packets_lost, | |
| 354 &jitter, | |
| 355 &fraction_lost, | |
| 356 &packets_discarded, | |
| 357 &packets_repaired, | |
| 358 &burst_packets_lost, | |
| 359 &burst_packets_discarded, | |
| 360 &burst_loss_count, | |
| 361 &burst_discard_count, | |
| 362 &burst_loss_rate, | |
| 363 &burst_discard_rate, | |
| 364 &gap_loss_rate, | |
| 365 &gap_discard_rate); | |
| 366 | |
| 367 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | |
| 368 const std::string& id, int64_t timestamp_us) | |
| 369 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) { | |
| 370 } | |
| 371 | |
| 372 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | |
| 373 std::string&& id, int64_t timestamp_us) | |
| 374 : RTCRTPStreamStats(std::move(id), timestamp_us), | |
| 375 packets_received("packetsReceived"), | |
| 376 bytes_received("bytesReceived"), | |
| 377 packets_lost("packetsLost"), | |
| 378 jitter("jitter"), | |
| 379 fraction_lost("fractionLost"), | |
| 380 packets_discarded("packetsDiscarded"), | |
| 381 packets_repaired("packetsRepaired"), | |
| 382 burst_packets_lost("burstPacketsLost"), | |
| 383 burst_packets_discarded("burstPacketsDiscarded"), | |
| 384 burst_loss_count("burstLossCount"), | |
| 385 burst_discard_count("burstDiscardCount"), | |
| 386 burst_loss_rate("burstLossRate"), | |
| 387 burst_discard_rate("burstDiscardRate"), | |
| 388 gap_loss_rate("gapLossRate"), | |
| 389 gap_discard_rate("gapDiscardRate") { | |
| 390 } | |
| 391 | |
| 392 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( | |
| 393 const RTCInboundRTPStreamStats& other) | |
| 394 : RTCRTPStreamStats(other), | |
| 395 packets_received(other.packets_received), | |
| 396 bytes_received(other.bytes_received), | |
| 397 packets_lost(other.packets_lost), | |
| 398 jitter(other.jitter), | |
| 399 fraction_lost(other.fraction_lost), | |
| 400 packets_discarded(other.packets_discarded), | |
| 401 packets_repaired(other.packets_repaired), | |
| 402 burst_packets_lost(other.burst_packets_lost), | |
| 403 burst_packets_discarded(other.burst_packets_discarded), | |
| 404 burst_loss_count(other.burst_loss_count), | |
| 405 burst_discard_count(other.burst_discard_count), | |
| 406 burst_loss_rate(other.burst_loss_rate), | |
| 407 burst_discard_rate(other.burst_discard_rate), | |
| 408 gap_loss_rate(other.gap_loss_rate), | |
| 409 gap_discard_rate(other.gap_discard_rate) { | |
| 410 } | |
| 411 | |
| 412 RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() { | |
| 413 } | |
| 414 | |
| 415 WEBRTC_RTCSTATS_IMPL( | |
| 416 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", | 350 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", |
| 417 &packets_sent, | 351 &packets_sent, |
| 418 &bytes_sent, | 352 &bytes_sent, |
| 419 &target_bitrate, | 353 &target_bitrate, |
| 420 &round_trip_time); | 354 &round_trip_time); |
| 421 | 355 |
| 422 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( | 356 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( |
| 423 const std::string& id, int64_t timestamp_us) | 357 const std::string& id, int64_t timestamp_us) |
| 424 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) { | 358 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) { |
| 425 } | 359 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 active_connection(other.active_connection), | 414 active_connection(other.active_connection), |
| 481 selected_candidate_pair_id(other.selected_candidate_pair_id), | 415 selected_candidate_pair_id(other.selected_candidate_pair_id), |
| 482 local_certificate_id(other.local_certificate_id), | 416 local_certificate_id(other.local_certificate_id), |
| 483 remote_certificate_id(other.remote_certificate_id) { | 417 remote_certificate_id(other.remote_certificate_id) { |
| 484 } | 418 } |
| 485 | 419 |
| 486 RTCTransportStats::~RTCTransportStats() { | 420 RTCTransportStats::~RTCTransportStats() { |
| 487 } | 421 } |
| 488 | 422 |
| 489 } // namespace webrtc | 423 } // namespace webrtc |
| OLD | NEW |