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

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

Issue 1399893005: relnote: Inline all frames smaller than a pointer into QuicFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Avoid_redundant_recvmmsg_104327020
Patch Set: Created 5 years, 2 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
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_test.cc » ('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) 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 case WINDOW_UPDATE_FRAME: 409 case WINDOW_UPDATE_FRAME:
410 net_log_.AddEvent( 410 net_log_.AddEvent(
411 NetLog::TYPE_QUIC_SESSION_WINDOW_UPDATE_FRAME_SENT, 411 NetLog::TYPE_QUIC_SESSION_WINDOW_UPDATE_FRAME_SENT,
412 base::Bind(&NetLogQuicWindowUpdateFrameCallback, 412 base::Bind(&NetLogQuicWindowUpdateFrameCallback,
413 frame.window_update_frame)); 413 frame.window_update_frame));
414 break; 414 break;
415 case BLOCKED_FRAME: 415 case BLOCKED_FRAME:
416 ++num_blocked_frames_sent_; 416 ++num_blocked_frames_sent_;
417 net_log_.AddEvent( 417 net_log_.AddEvent(
418 NetLog::TYPE_QUIC_SESSION_BLOCKED_FRAME_SENT, 418 NetLog::TYPE_QUIC_SESSION_BLOCKED_FRAME_SENT,
419 base::Bind(&NetLogQuicBlockedFrameCallback, 419 base::Bind(&NetLogQuicBlockedFrameCallback, &frame.blocked_frame));
420 frame.blocked_frame));
421 break; 420 break;
422 case STOP_WAITING_FRAME: 421 case STOP_WAITING_FRAME:
423 net_log_.AddEvent( 422 net_log_.AddEvent(
424 NetLog::TYPE_QUIC_SESSION_STOP_WAITING_FRAME_SENT, 423 NetLog::TYPE_QUIC_SESSION_STOP_WAITING_FRAME_SENT,
425 base::Bind(&NetLogQuicStopWaitingFrameCallback, 424 base::Bind(&NetLogQuicStopWaitingFrameCallback,
426 frame.stop_waiting_frame)); 425 frame.stop_waiting_frame));
427 break; 426 break;
428 case PING_FRAME: 427 case PING_FRAME:
429 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.ConnectionFlowControlBlocked", 428 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.ConnectionFlowControlBlocked",
430 session_->IsConnectionFlowControlBlocked()); 429 session_->IsConnectionFlowControlBlocked());
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 continue; 898 continue;
900 } 899 }
901 // Record some overlapping patterns, to get a better picture, since this is 900 // Record some overlapping patterns, to get a better picture, since this is
902 // not very expensive. 901 // not very expensive.
903 if (i % 3 == 0) 902 if (i % 3 == 0)
904 six_packet_histogram->Add(recent_6_mask); 903 six_packet_histogram->Add(recent_6_mask);
905 } 904 }
906 } 905 }
907 906
908 } // namespace net 907 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698