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

Unified Diff: webrtc/p2p/base/transport.h

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
« webrtc/api/statstypes.cc ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.h
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h
index 46360ccf04eaf810d74e2a89a1f41a393226077a..e372267d650ea72586a5022e0ec615cdd8ad3e96 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -95,8 +95,10 @@ struct ConnectionInfo {
sent_bytes_second(0),
sent_discarded_packets(0),
sent_total_packets(0),
+ sent_ping_requests(0),
recv_total_bytes(0),
recv_bytes_second(0),
+ recv_ping_responses(0),
key(NULL) {}
bool best_connection; // Is this the best connection we have?
@@ -111,9 +113,11 @@ struct ConnectionInfo {
// socket errors.
size_t sent_total_packets; // Number of total outgoing packets attempted for
// sending.
+ size_t sent_ping_requests; // Number of STUN ping request sent.
pthatcher1 2016/05/05 23:30:57 request => requests
size_t recv_total_bytes; // Total bytes received on this connection.
size_t recv_bytes_second; // Bps over the last measurement interval.
+ size_t recv_ping_responses; // Number of STUN ping response received.
pthatcher1 2016/05/05 23:30:57 response => responses
Candidate local_candidate; // The local candidate for this connection.
Candidate remote_candidate; // The remote candidate for this connection.
void* key; // A static value that identifies this conn.
« webrtc/api/statstypes.cc ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698