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

Side by Side Diff: net/quic/quic_client_session.cc

Issue 323933003: Add a new historgram Net.QuicSession.ConnectionClose.NumOpenStreams.HandshakeTimedOut (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_client_session.h" 5 #include "net/quic/quic_client_session.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 } else { 577 } else {
578 UMA_HISTOGRAM_SPARSE_SLOWLY( 578 UMA_HISTOGRAM_SPARSE_SLOWLY(
579 "Net.QuicSession.ConnectionCloseErrorCodeClient", error); 579 "Net.QuicSession.ConnectionCloseErrorCodeClient", error);
580 } 580 }
581 581
582 if (error == QUIC_CONNECTION_TIMED_OUT) { 582 if (error == QUIC_CONNECTION_TIMED_OUT) {
583 UMA_HISTOGRAM_COUNTS( 583 UMA_HISTOGRAM_COUNTS(
584 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut", 584 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut",
585 GetNumOpenStreams()); 585 GetNumOpenStreams());
586 if (!IsCryptoHandshakeConfirmed()) { 586 if (!IsCryptoHandshakeConfirmed()) {
587 // If there have been any streams created, they were 0-RTT speculative 587 UMA_HISTOGRAM_COUNTS(
588 // requests that have not be serviced. 588 "Net.QuicSession.ConnectionClose.NumOpenStreams.HandshakeTimedOut",
589 GetNumOpenStreams());
589 UMA_HISTOGRAM_COUNTS( 590 UMA_HISTOGRAM_COUNTS(
590 "Net.QuicSession.ConnectionClose.NumTotalStreams.HandshakeTimedOut", 591 "Net.QuicSession.ConnectionClose.NumTotalStreams.HandshakeTimedOut",
591 num_total_streams_); 592 num_total_streams_);
592 } 593 }
593 } 594 }
594 595
595 if (!IsCryptoHandshakeConfirmed()) { 596 if (!IsCryptoHandshakeConfirmed()) {
596 if (error == QUIC_PUBLIC_RESET) { 597 if (error == QUIC_PUBLIC_RESET) {
597 RecordHandshakeFailureReason(HANDSHAKE_FAILURE_PUBLIC_RESET); 598 RecordHandshakeFailureReason(HANDSHAKE_FAILURE_PUBLIC_RESET);
598 } else if (connection()->GetStats().packets_received == 0) { 599 } else if (connection()->GetStats().packets_received == 0) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 839
839 if (IsCryptoHandshakeConfirmed()) 840 if (IsCryptoHandshakeConfirmed())
840 return; 841 return;
841 842
842 if (stream_factory_) 843 if (stream_factory_)
843 stream_factory_->OnSessionConnectTimeout(this); 844 stream_factory_->OnSessionConnectTimeout(this);
844 CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); 845 CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED);
845 } 846 }
846 847
847 } // namespace net 848 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698