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

Unified Diff: webrtc/api/statscollector.cc

Issue 1940493002: Add Stats to Stun ping. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/statstypes.h » ('j') | webrtc/api/statstypes.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/statscollector.cc
diff --git a/webrtc/api/statscollector.cc b/webrtc/api/statscollector.cc
index 82c97cc7cd5929af4a545a7f3c9a20f48a173f18..232c23070e82491bfa197b561ff03b22a68f1f07 100644
--- a/webrtc/api/statscollector.cc
+++ b/webrtc/api/statscollector.cc
@@ -611,12 +611,14 @@ StatsReport* StatsCollector::AddConnectionInfoReport(
AddCandidateReport(info.remote_candidate, false)->id());
const Int64ForAdd int64s[] = {
- { StatsReport::kStatsValueNameBytesReceived, info.recv_total_bytes },
- { StatsReport::kStatsValueNameBytesSent, info.sent_total_bytes },
- { StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets },
- { StatsReport::kStatsValueNameRtt, info.rtt },
- { StatsReport::kStatsValueNameSendPacketsDiscarded,
- info.sent_discarded_packets },
+ {StatsReport::kStatsValueNameBytesReceived, info.recv_total_bytes},
+ {StatsReport::kStatsValueNameBytesSent, info.sent_total_bytes},
+ {StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets},
+ {StatsReport::kStatsValueNameRtt, info.rtt},
+ {StatsReport::kStatsValueNameSendPacketsDiscarded,
+ info.sent_discarded_packets},
+ {StatsReport::kStatsValueNameSentPingRequests, info.sent_ping_requests},
+ {StatsReport::kStatsValueNameRecvPingResponses, info.recv_ping_responses},
};
for (const auto& i : int64s)
report->AddInt64(i.name, i.value);
« no previous file with comments | « no previous file | webrtc/api/statstypes.h » ('j') | webrtc/api/statstypes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698