| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromium/quic_connection_logger.h" | 5 #include "net/quic/chromium/quic_connection_logger.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 UMA_HISTOGRAM_COUNTS("Net.QuicSession.IncorrectConnectionIDsReceived", | 317 UMA_HISTOGRAM_COUNTS("Net.QuicSession.IncorrectConnectionIDsReceived", |
| 318 num_incorrect_connection_ids_); | 318 num_incorrect_connection_ids_); |
| 319 UMA_HISTOGRAM_COUNTS("Net.QuicSession.UndecryptablePacketsReceived", | 319 UMA_HISTOGRAM_COUNTS("Net.QuicSession.UndecryptablePacketsReceived", |
| 320 num_undecryptable_packets_); | 320 num_undecryptable_packets_); |
| 321 UMA_HISTOGRAM_COUNTS("Net.QuicSession.DuplicatePacketsReceived", | 321 UMA_HISTOGRAM_COUNTS("Net.QuicSession.DuplicatePacketsReceived", |
| 322 num_duplicate_packets_); | 322 num_duplicate_packets_); |
| 323 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Received", | 323 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Received", |
| 324 num_blocked_frames_received_); | 324 num_blocked_frames_received_); |
| 325 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Sent", | 325 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Sent", |
| 326 num_blocked_frames_sent_); | 326 num_blocked_frames_sent_); |
| 327 UMA_HISTOGRAM_COUNTS("Net.QuicSession.HeadersStream.EarlyFramesReceived", | |
| 328 session_->headers_stream()->num_early_frames_received()); | |
| 329 | 327 |
| 330 const QuicConnectionStats& stats = session_->connection()->GetStats(); | 328 const QuicConnectionStats& stats = session_->connection()->GetStats(); |
| 331 UMA_HISTOGRAM_TIMES("Net.QuicSession.MinRTT", | 329 UMA_HISTOGRAM_TIMES("Net.QuicSession.MinRTT", |
| 332 base::TimeDelta::FromMicroseconds(stats.min_rtt_us)); | 330 base::TimeDelta::FromMicroseconds(stats.min_rtt_us)); |
| 333 UMA_HISTOGRAM_TIMES("Net.QuicSession.SmoothedRTT", | 331 UMA_HISTOGRAM_TIMES("Net.QuicSession.SmoothedRTT", |
| 334 base::TimeDelta::FromMicroseconds(stats.srtt_us)); | 332 base::TimeDelta::FromMicroseconds(stats.srtt_us)); |
| 335 | 333 |
| 336 if (num_frames_received_ > 0) { | 334 if (num_frames_received_ > 0) { |
| 337 int duplicate_stream_frame_per_thousand = | 335 int duplicate_stream_frame_per_thousand = |
| 338 num_duplicate_frames_received_ * 1000 / num_frames_received_; | 336 num_duplicate_frames_received_ * 1000 / num_frames_received_; |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 continue; | 848 continue; |
| 851 } | 849 } |
| 852 // Record some overlapping patterns, to get a better picture, since this is | 850 // Record some overlapping patterns, to get a better picture, since this is |
| 853 // not very expensive. | 851 // not very expensive. |
| 854 if (i % 3 == 0) | 852 if (i % 3 == 0) |
| 855 six_packet_histogram->Add(recent_6_mask); | 853 six_packet_histogram->Add(recent_6_mask); |
| 856 } | 854 } |
| 857 } | 855 } |
| 858 | 856 |
| 859 } // namespace net | 857 } // namespace net |
| OLD | NEW |