diff options
author | Artem Titov <titovartem@google.com> | 2020-07-06 16:06:37 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-07 10:45:05 +0000 |
commit | fb6f975401972635a644c0db06c135b4c0aaef4a (patch) | |
tree | 40588067737b734697e38eada1a608fd90401549 /stats | |
parent | 3444a49d77b094c7fa2aade8873288a55ac0b9e5 (diff) | |
download | webrtc-fb6f975401972635a644c0db06c135b4c0aaef4a.tar.gz |
Implement packets_(sent | received) for RTCTransportStats
Bug: webrtc:11756
Change-Id: Ic0caad6d4675969ef3ae886f50326e4a2e1cbfe7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178741
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31643}
Diffstat (limited to 'stats')
-rw-r--r-- | stats/rtcstats_objects.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stats/rtcstats_objects.cc b/stats/rtcstats_objects.cc index 6c7b8d2123..ea16444554 100644 --- a/stats/rtcstats_objects.cc +++ b/stats/rtcstats_objects.cc @@ -906,7 +906,9 @@ RTCVideoSourceStats::~RTCVideoSourceStats() {} // clang-format off WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", &bytes_sent, + &packets_sent, &bytes_received, + &packets_received, &rtcp_transport_stats_id, &dtls_state, &selected_candidate_pair_id, @@ -925,7 +927,9 @@ RTCTransportStats::RTCTransportStats(const std::string& id, RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us) : RTCStats(std::move(id), timestamp_us), bytes_sent("bytesSent"), + packets_sent("packetsSent"), bytes_received("bytesReceived"), + packets_received("packetsReceived"), rtcp_transport_stats_id("rtcpTransportStatsId"), dtls_state("dtlsState"), selected_candidate_pair_id("selectedCandidatePairId"), @@ -939,7 +943,9 @@ RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us) RTCTransportStats::RTCTransportStats(const RTCTransportStats& other) : RTCStats(other.id(), other.timestamp_us()), bytes_sent(other.bytes_sent), + packets_sent(other.packets_sent), bytes_received(other.bytes_received), + packets_received(other.packets_received), rtcp_transport_stats_id(other.rtcp_transport_stats_id), dtls_state(other.dtls_state), selected_candidate_pair_id(other.selected_candidate_pair_id), |