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

Unified Diff: net/quic/quic_client_session.cc

Issue 502243002: Adding histogram to count number of RTTs for handshake when confirmation is required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
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 d5639738969f8f8250c00cd73b10c6ceff1fcbbe..ab8fd75e16b154fae308a967a9a107d98648db88 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -239,6 +239,11 @@ QuicClientSession::~QuicClientSession() {
} else {
UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.ConnectRandomPortForHTTP",
round_trip_handshakes, 0, 3, 4);
+ if (require_confirmation_) {
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "Net.QuicSession.ConnectRandomPortRequiringConfirmationForHTTP",
+ round_trip_handshakes, 0, 3, 4);
+ }
}
} else {
if (port_selected) {
@@ -247,6 +252,11 @@ QuicClientSession::~QuicClientSession() {
} else {
UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.ConnectRandomPortForHTTPS",
round_trip_handshakes, 0, 3, 4);
+ if (require_confirmation_) {
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "Net.QuicSession.ConnectRandomPortRequiringConfirmationForHTTPS",
+ round_trip_handshakes, 0, 3, 4);
+ }
}
}
const QuicConnectionStats stats = connection()->GetStats();
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698