Chromium Code Reviews| 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/quic_connection_logger.h" | 5 #include "net/quic/quic_connection_logger.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 UMA_HISTOGRAM_COUNTS("Net.QuicSession.IncorrectConnectionIDsReceived", | 362 UMA_HISTOGRAM_COUNTS("Net.QuicSession.IncorrectConnectionIDsReceived", |
| 363 num_incorrect_connection_ids_); | 363 num_incorrect_connection_ids_); |
| 364 UMA_HISTOGRAM_COUNTS("Net.QuicSession.UndecryptablePacketsReceived", | 364 UMA_HISTOGRAM_COUNTS("Net.QuicSession.UndecryptablePacketsReceived", |
| 365 num_undecryptable_packets_); | 365 num_undecryptable_packets_); |
| 366 UMA_HISTOGRAM_COUNTS("Net.QuicSession.DuplicatePacketsReceived", | 366 UMA_HISTOGRAM_COUNTS("Net.QuicSession.DuplicatePacketsReceived", |
| 367 num_duplicate_packets_); | 367 num_duplicate_packets_); |
| 368 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Received", | 368 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Received", |
| 369 num_blocked_frames_received_); | 369 num_blocked_frames_received_); |
| 370 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Sent", | 370 UMA_HISTOGRAM_COUNTS("Net.QuicSession.BlockedFrames.Sent", |
| 371 num_blocked_frames_sent_); | 371 num_blocked_frames_sent_); |
| 372 UMA_HISTOGRAM_COUNTS("Net.QuicSession.HeadersStreamEarlyFramesReceived", | |
|
Alexei Svitkine (slow)
2015/02/18 19:53:55
Optional nit: Maybe more readable if you add anoth
Ryan Hamilton
2015/02/18 19:57:35
Done. Albeit as: Net.QuicSession.HeadersStream.Ear
| |
| 373 session_->headers_stream()->num_early_frames_received()); | |
| 372 | 374 |
| 373 if (num_frames_received_ > 0) { | 375 if (num_frames_received_ > 0) { |
| 374 int duplicate_stream_frame_per_thousand = | 376 int duplicate_stream_frame_per_thousand = |
| 375 num_duplicate_frames_received_ * 1000 / num_frames_received_; | 377 num_duplicate_frames_received_ * 1000 / num_frames_received_; |
| 376 if (num_packets_received_ < 100) { | 378 if (num_packets_received_ < 100) { |
| 377 UMA_HISTOGRAM_CUSTOM_COUNTS( | 379 UMA_HISTOGRAM_CUSTOM_COUNTS( |
| 378 "Net.QuicSession.StreamFrameDuplicatedShortConnection", | 380 "Net.QuicSession.StreamFrameDuplicatedShortConnection", |
| 379 duplicate_stream_frame_per_thousand, 1, 1000, 75); | 381 duplicate_stream_frame_per_thousand, 1, 1000, 75); |
| 380 } else { | 382 } else { |
| 381 UMA_HISTOGRAM_CUSTOM_COUNTS( | 383 UMA_HISTOGRAM_CUSTOM_COUNTS( |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 904 continue; | 906 continue; |
| 905 } | 907 } |
| 906 // Record some overlapping patterns, to get a better picture, since this is | 908 // Record some overlapping patterns, to get a better picture, since this is |
| 907 // not very expensive. | 909 // not very expensive. |
| 908 if (i % 3 == 0) | 910 if (i % 3 == 0) |
| 909 six_packet_histogram->Add(recent_6_mask); | 911 six_packet_histogram->Add(recent_6_mask); |
| 910 } | 912 } |
| 911 } | 913 } |
| 912 | 914 |
| 913 } // namespace net | 915 } // namespace net |
| OLD | NEW |