OLD | NEW |
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_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 0, kMaxReordering, 50); | 342 0, kMaxReordering, 50); |
343 if (stats.min_rtt_us > 100 * 1000) { | 343 if (stats.min_rtt_us > 100 * 1000) { |
344 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.MaxReorderingTimeLongRtt", | 344 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.MaxReorderingTimeLongRtt", |
345 reordering, 0, kMaxReordering, 50); | 345 reordering, 0, kMaxReordering, 50); |
346 } | 346 } |
347 UMA_HISTOGRAM_COUNTS( | 347 UMA_HISTOGRAM_COUNTS( |
348 "Net.QuicSession.MaxReordering", | 348 "Net.QuicSession.MaxReordering", |
349 static_cast<base::HistogramBase::Sample>(stats.max_sequence_reordering)); | 349 static_cast<base::HistogramBase::Sample>(stats.max_sequence_reordering)); |
350 } | 350 } |
351 | 351 |
| 352 void QuicChromiumClientSession::OnHeadersHeadOfLineBlocking( |
| 353 QuicTime::Delta delta) { |
| 354 UMA_HISTOGRAM_TIMES( |
| 355 "Net.QuicSession.HeadersHOLBlockedTime", |
| 356 base::TimeDelta::FromMicroseconds(delta.ToMicroseconds())); |
| 357 } |
| 358 |
352 void QuicChromiumClientSession::OnStreamFrame(const QuicStreamFrame& frame) { | 359 void QuicChromiumClientSession::OnStreamFrame(const QuicStreamFrame& frame) { |
353 // Record total number of stream frames. | 360 // Record total number of stream frames. |
354 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", 1); | 361 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", 1); |
355 | 362 |
356 // Record number of frames per stream in packet. | 363 // Record number of frames per stream in packet. |
357 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket", 1); | 364 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket", 1); |
358 | 365 |
359 return QuicSpdySession::OnStreamFrame(frame); | 366 return QuicSpdySession::OnStreamFrame(frame); |
360 } | 367 } |
361 | 368 |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 return; | 975 return; |
969 | 976 |
970 // TODO(rch): re-enable this code once beta is cut. | 977 // TODO(rch): re-enable this code once beta is cut. |
971 // if (stream_factory_) | 978 // if (stream_factory_) |
972 // stream_factory_->OnSessionConnectTimeout(this); | 979 // stream_factory_->OnSessionConnectTimeout(this); |
973 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
974 // DCHECK_EQ(0u, GetNumOpenStreams()); | 981 // DCHECK_EQ(0u, GetNumOpenStreams()); |
975 } | 982 } |
976 | 983 |
977 } // namespace net | 984 } // namespace net |
OLD | NEW |