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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 break; | 394 break; |
395 case WINDOW_UPDATE_FRAME: | 395 case WINDOW_UPDATE_FRAME: |
396 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_WINDOW_UPDATE_FRAME_SENT, | 396 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_WINDOW_UPDATE_FRAME_SENT, |
397 base::Bind(&NetLogQuicWindowUpdateFrameCallback, | 397 base::Bind(&NetLogQuicWindowUpdateFrameCallback, |
398 frame.window_update_frame)); | 398 frame.window_update_frame)); |
399 break; | 399 break; |
400 case BLOCKED_FRAME: | 400 case BLOCKED_FRAME: |
401 ++num_blocked_frames_sent_; | 401 ++num_blocked_frames_sent_; |
402 net_log_.AddEvent( | 402 net_log_.AddEvent( |
403 NetLog::TYPE_QUIC_SESSION_BLOCKED_FRAME_SENT, | 403 NetLog::TYPE_QUIC_SESSION_BLOCKED_FRAME_SENT, |
404 base::Bind(&NetLogQuicBlockedFrameCallback, frame.blocked_frame)); | 404 base::Bind(&NetLogQuicBlockedFrameCallback, &frame.blocked_frame)); |
405 break; | 405 break; |
406 case STOP_WAITING_FRAME: | 406 case STOP_WAITING_FRAME: |
407 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_STOP_WAITING_FRAME_SENT, | 407 net_log_.AddEvent(NetLog::TYPE_QUIC_SESSION_STOP_WAITING_FRAME_SENT, |
408 base::Bind(&NetLogQuicStopWaitingFrameCallback, | 408 base::Bind(&NetLogQuicStopWaitingFrameCallback, |
409 frame.stop_waiting_frame)); | 409 frame.stop_waiting_frame)); |
410 break; | 410 break; |
411 case PING_FRAME: | 411 case PING_FRAME: |
412 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.ConnectionFlowControlBlocked", | 412 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.ConnectionFlowControlBlocked", |
413 session_->IsConnectionFlowControlBlocked()); | 413 session_->IsConnectionFlowControlBlocked()); |
414 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.StreamFlowControlBlocked", | 414 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.StreamFlowControlBlocked", |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 continue; | 873 continue; |
874 } | 874 } |
875 // Record some overlapping patterns, to get a better picture, since this is | 875 // Record some overlapping patterns, to get a better picture, since this is |
876 // not very expensive. | 876 // not very expensive. |
877 if (i % 3 == 0) | 877 if (i % 3 == 0) |
878 six_packet_histogram->Add(recent_6_mask); | 878 six_packet_histogram->Add(recent_6_mask); |
879 } | 879 } |
880 } | 880 } |
881 | 881 |
882 } // namespace net | 882 } // namespace net |
OLD | NEW |