Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: webrtc/stats/rtcstats_objects.cc

Issue 2722633005: Move RTCOutboundRTPStreamStats.roundTripTime to inbound, don't collect. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/pc/rtcstatscollector_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 RTCRTPStreamStats::~RTCRTPStreamStats() { 506 RTCRTPStreamStats::~RTCRTPStreamStats() {
507 } 507 }
508 508
509 WEBRTC_RTCSTATS_IMPL( 509 WEBRTC_RTCSTATS_IMPL(
510 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp", 510 RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp",
511 &packets_received, 511 &packets_received,
512 &bytes_received, 512 &bytes_received,
513 &packets_lost, 513 &packets_lost,
514 &jitter, 514 &jitter,
515 &fraction_lost, 515 &fraction_lost,
516 &round_trip_time,
516 &packets_discarded, 517 &packets_discarded,
517 &packets_repaired, 518 &packets_repaired,
518 &burst_packets_lost, 519 &burst_packets_lost,
519 &burst_packets_discarded, 520 &burst_packets_discarded,
520 &burst_loss_count, 521 &burst_loss_count,
521 &burst_discard_count, 522 &burst_discard_count,
522 &burst_loss_rate, 523 &burst_loss_rate,
523 &burst_discard_rate, 524 &burst_discard_rate,
524 &gap_loss_rate, 525 &gap_loss_rate,
525 &gap_discard_rate, 526 &gap_discard_rate,
526 &frames_decoded); 527 &frames_decoded);
527 528
528 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( 529 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
529 const std::string& id, int64_t timestamp_us) 530 const std::string& id, int64_t timestamp_us)
530 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) { 531 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) {
531 } 532 }
532 533
533 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( 534 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
534 std::string&& id, int64_t timestamp_us) 535 std::string&& id, int64_t timestamp_us)
535 : RTCRTPStreamStats(std::move(id), timestamp_us), 536 : RTCRTPStreamStats(std::move(id), timestamp_us),
536 packets_received("packetsReceived"), 537 packets_received("packetsReceived"),
537 bytes_received("bytesReceived"), 538 bytes_received("bytesReceived"),
538 packets_lost("packetsLost"), 539 packets_lost("packetsLost"),
539 jitter("jitter"), 540 jitter("jitter"),
540 fraction_lost("fractionLost"), 541 fraction_lost("fractionLost"),
542 round_trip_time("roundTripTime"),
541 packets_discarded("packetsDiscarded"), 543 packets_discarded("packetsDiscarded"),
542 packets_repaired("packetsRepaired"), 544 packets_repaired("packetsRepaired"),
543 burst_packets_lost("burstPacketsLost"), 545 burst_packets_lost("burstPacketsLost"),
544 burst_packets_discarded("burstPacketsDiscarded"), 546 burst_packets_discarded("burstPacketsDiscarded"),
545 burst_loss_count("burstLossCount"), 547 burst_loss_count("burstLossCount"),
546 burst_discard_count("burstDiscardCount"), 548 burst_discard_count("burstDiscardCount"),
547 burst_loss_rate("burstLossRate"), 549 burst_loss_rate("burstLossRate"),
548 burst_discard_rate("burstDiscardRate"), 550 burst_discard_rate("burstDiscardRate"),
549 gap_loss_rate("gapLossRate"), 551 gap_loss_rate("gapLossRate"),
550 gap_discard_rate("gapDiscardRate"), 552 gap_discard_rate("gapDiscardRate"),
551 frames_decoded("framesDecoded") { 553 frames_decoded("framesDecoded") {
552 } 554 }
553 555
554 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats( 556 RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
555 const RTCInboundRTPStreamStats& other) 557 const RTCInboundRTPStreamStats& other)
556 : RTCRTPStreamStats(other), 558 : RTCRTPStreamStats(other),
557 packets_received(other.packets_received), 559 packets_received(other.packets_received),
558 bytes_received(other.bytes_received), 560 bytes_received(other.bytes_received),
559 packets_lost(other.packets_lost), 561 packets_lost(other.packets_lost),
560 jitter(other.jitter), 562 jitter(other.jitter),
561 fraction_lost(other.fraction_lost), 563 fraction_lost(other.fraction_lost),
564 round_trip_time(other.round_trip_time),
562 packets_discarded(other.packets_discarded), 565 packets_discarded(other.packets_discarded),
563 packets_repaired(other.packets_repaired), 566 packets_repaired(other.packets_repaired),
564 burst_packets_lost(other.burst_packets_lost), 567 burst_packets_lost(other.burst_packets_lost),
565 burst_packets_discarded(other.burst_packets_discarded), 568 burst_packets_discarded(other.burst_packets_discarded),
566 burst_loss_count(other.burst_loss_count), 569 burst_loss_count(other.burst_loss_count),
567 burst_discard_count(other.burst_discard_count), 570 burst_discard_count(other.burst_discard_count),
568 burst_loss_rate(other.burst_loss_rate), 571 burst_loss_rate(other.burst_loss_rate),
569 burst_discard_rate(other.burst_discard_rate), 572 burst_discard_rate(other.burst_discard_rate),
570 gap_loss_rate(other.gap_loss_rate), 573 gap_loss_rate(other.gap_loss_rate),
571 gap_discard_rate(other.gap_discard_rate), 574 gap_discard_rate(other.gap_discard_rate),
572 frames_decoded(other.frames_decoded) { 575 frames_decoded(other.frames_decoded) {
573 } 576 }
574 577
575 RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() { 578 RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() {
576 } 579 }
577 580
578 WEBRTC_RTCSTATS_IMPL( 581 WEBRTC_RTCSTATS_IMPL(
579 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp", 582 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
580 &packets_sent, 583 &packets_sent,
581 &bytes_sent, 584 &bytes_sent,
582 &target_bitrate, 585 &target_bitrate,
583 &round_trip_time,
584 &frames_encoded); 586 &frames_encoded);
585 587
586 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( 588 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
587 const std::string& id, int64_t timestamp_us) 589 const std::string& id, int64_t timestamp_us)
588 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) { 590 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) {
589 } 591 }
590 592
591 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( 593 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
592 std::string&& id, int64_t timestamp_us) 594 std::string&& id, int64_t timestamp_us)
593 : RTCRTPStreamStats(std::move(id), timestamp_us), 595 : RTCRTPStreamStats(std::move(id), timestamp_us),
594 packets_sent("packetsSent"), 596 packets_sent("packetsSent"),
595 bytes_sent("bytesSent"), 597 bytes_sent("bytesSent"),
596 target_bitrate("targetBitrate"), 598 target_bitrate("targetBitrate"),
597 round_trip_time("roundTripTime"),
598 frames_encoded("framesEncoded") { 599 frames_encoded("framesEncoded") {
599 } 600 }
600 601
601 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats( 602 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
602 const RTCOutboundRTPStreamStats& other) 603 const RTCOutboundRTPStreamStats& other)
603 : RTCRTPStreamStats(other), 604 : RTCRTPStreamStats(other),
604 packets_sent(other.packets_sent), 605 packets_sent(other.packets_sent),
605 bytes_sent(other.bytes_sent), 606 bytes_sent(other.bytes_sent),
606 target_bitrate(other.target_bitrate), 607 target_bitrate(other.target_bitrate),
607 round_trip_time(other.round_trip_time),
608 frames_encoded(other.frames_encoded) { 608 frames_encoded(other.frames_encoded) {
609 } 609 }
610 610
611 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() { 611 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() {
612 } 612 }
613 613
614 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", 614 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport",
615 &bytes_sent, 615 &bytes_sent,
616 &bytes_received, 616 &bytes_received,
617 &rtcp_transport_stats_id, 617 &rtcp_transport_stats_id,
(...skipping 28 matching lines...) Expand all
646 dtls_state(other.dtls_state), 646 dtls_state(other.dtls_state),
647 selected_candidate_pair_id(other.selected_candidate_pair_id), 647 selected_candidate_pair_id(other.selected_candidate_pair_id),
648 local_certificate_id(other.local_certificate_id), 648 local_certificate_id(other.local_certificate_id),
649 remote_certificate_id(other.remote_certificate_id) { 649 remote_certificate_id(other.remote_certificate_id) {
650 } 650 }
651 651
652 RTCTransportStats::~RTCTransportStats() { 652 RTCTransportStats::~RTCTransportStats() {
653 } 653 }
654 654
655 } // namespace webrtc 655 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/rtcstatscollector_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698