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

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: Rename. Created 4 years, 7 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') | no next file with comments »
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 df1d0aa0d32235beb5d6422e665348a9eb8f7eac..ab191d15e5d799ebc4d2ba1a9da1359c84c94293 100644
--- a/webrtc/api/statscollector.cc
+++ b/webrtc/api/statscollector.cc
@@ -629,12 +629,19 @@ 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::kStatsValueNameSentPingRequestsTotal,
+ info.sent_ping_requests_total},
+ {StatsReport::kStatsValueNameSentPingRequestsBeforeFirstResponse,
+ info.sent_ping_requests_before_first_response},
+ {StatsReport::kStatsValueNameSentPingResponses, info.sent_ping_responses},
+ {StatsReport::kStatsValueNameRecvPingRequests, info.recv_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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698