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

Unified Diff: net/quic/quic_client_session.cc

Issue 1228873008: Introduce UMA metrics for path MTU discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 years, 5 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 | net/quic/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index a2dde4e950f98409576cc0ebaf37150e66850dd1..e45a4b8d3a947b6207809eaef18f2896b9500c3f 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -307,6 +307,17 @@ QuicClientSession::~QuicClientSession() {
}
}
+ // The MTU used by QUIC is limited to a fairly small set of predefined values
+ // (initial values and MTU discovery values), but does not fare well when
+ // bucketed. Because of that, a sparse histogram is used here.
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Net.QuicSession.ClientSideMtu",
+ connection()->max_packet_length());
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Net.QuicSession.ServerSideMtu",
+ stats.max_received_packet_size);
+
+ UMA_HISTOGRAM_COUNTS("Net.QuicSession.MtuProbesSent",
+ connection()->mtu_probe_count());
+
if (stats.max_sequence_reordering == 0)
return;
const base::HistogramBase::Sample kMaxReordering = 100;
« no previous file with comments | « no previous file | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698