From 3f407778f6f36e6bbf936a027614698da2a91ea7 Mon Sep 17 00:00:00 2001 From: "rch@chromium.org" Date: Thu, 22 May 2014 08:51:35 +0000 Subject: Add two new histograms: Net.QuicSession.ConnectionClose.HandshakeFailureBlackHole.QuicError Net.QuicSession.ConnectionClose.HandshakeFailureUnknown.QuicError to track the QUIC error which caused a QUIC connection to be closed before the hanshake was confirmed, in the case where at least 1 packet was received. Review URL: https://codereview.chromium.org/296593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272145 0039d316-1c4b-4281-b951-d872f2087c98 --- net/quic/quic_client_session.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net/quic') diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc index dd938a7..b9a3d3d 100644 --- a/net/quic/quic_client_session.cc +++ b/net/quic/quic_client_session.cc @@ -548,8 +548,14 @@ void QuicClientSession::OnConnectionClosed(QuicErrorCode error, RecordHandshakeFailureReason(HANDSHAKE_FAILURE_PUBLIC_RESET); } else if (connection()->GetStats().packets_received == 0) { RecordHandshakeFailureReason(HANDSHAKE_FAILURE_BLACK_HOLE); + UMA_HISTOGRAM_SPARSE_SLOWLY( + "Net.QuicSession.ConnectionClose.HandshakeFailureBlackHole.QuicError", + error); } else { RecordHandshakeFailureReason(HANDSHAKE_FAILURE_UNKNOWN); + UMA_HISTOGRAM_SPARSE_SLOWLY( + "Net.QuicSession.ConnectionClose.HandshakeFailureUnknown.QuicError", + error); } } -- cgit v1.1