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

Unified Diff: webrtc/stats/rtcstats_objects.cc

Issue 2452043002: RTCInboundRTPStreamStats added. (Closed)
Patch Set: Rebase with master after CL this depends on landed Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/rtcstats_objects.cc
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc
index 3d1d369407811e48a1fb3d6887fea63781f2f4cd..2523e36a88731e72a23f3858a50ddf760d86b5b9 100644
--- a/webrtc/stats/rtcstats_objects.cc
+++ b/webrtc/stats/rtcstats_objects.cc
@@ -347,6 +347,72 @@ RTCRTPStreamStats::~RTCRTPStreamStats() {
}
WEBRTC_RTCSTATS_IMPL(
+ RTCInboundRTPStreamStats, RTCRTPStreamStats, "inbound-rtp",
+ &packets_received,
+ &bytes_received,
+ &packets_lost,
+ &jitter,
+ &fraction_lost,
+ &packets_discarded,
+ &packets_repaired,
+ &burst_packets_lost,
+ &burst_packets_discarded,
+ &burst_loss_count,
+ &burst_discard_count,
+ &burst_loss_rate,
+ &burst_discard_rate,
+ &gap_loss_rate,
+ &gap_discard_rate);
+
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
+ const std::string& id, int64_t timestamp_us)
+ : RTCInboundRTPStreamStats(std::string(id), timestamp_us) {
+}
+
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
+ std::string&& id, int64_t timestamp_us)
+ : RTCRTPStreamStats(std::move(id), timestamp_us),
+ packets_received("packetsReceived"),
+ bytes_received("bytesReceived"),
+ packets_lost("packetsLost"),
+ jitter("jitter"),
+ fraction_lost("fractionLost"),
+ packets_discarded("packetsDiscarded"),
+ packets_repaired("packetsRepaired"),
+ burst_packets_lost("burstPacketsLost"),
+ burst_packets_discarded("burstPacketsDiscarded"),
+ burst_loss_count("burstLossCount"),
+ burst_discard_count("burstDiscardCount"),
+ burst_loss_rate("burstLossRate"),
+ burst_discard_rate("burstDiscardRate"),
+ gap_loss_rate("gapLossRate"),
+ gap_discard_rate("gapDiscardRate") {
+}
+
+RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
+ const RTCInboundRTPStreamStats& other)
+ : RTCRTPStreamStats(other),
+ packets_received(other.packets_received),
+ bytes_received(other.bytes_received),
+ packets_lost(other.packets_lost),
+ jitter(other.jitter),
+ fraction_lost(other.fraction_lost),
+ packets_discarded(other.packets_discarded),
+ packets_repaired(other.packets_repaired),
+ burst_packets_lost(other.burst_packets_lost),
+ burst_packets_discarded(other.burst_packets_discarded),
+ burst_loss_count(other.burst_loss_count),
+ burst_discard_count(other.burst_discard_count),
+ burst_loss_rate(other.burst_loss_rate),
+ burst_discard_rate(other.burst_discard_rate),
+ gap_loss_rate(other.gap_loss_rate),
+ gap_discard_rate(other.gap_discard_rate) {
+}
+
+RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() {
+}
+
+WEBRTC_RTCSTATS_IMPL(
RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
&packets_sent,
&bytes_sent,
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698