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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_stats.h" 5 #include "net/quic/quic_connection_stats.h"
6 6
7 using std::ostream; 7 using std::ostream;
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 23 matching lines...) Expand all
34 estimated_bandwidth(0), 34 estimated_bandwidth(0),
35 packets_reordered(0), 35 packets_reordered(0),
36 max_sequence_reordering(0), 36 max_sequence_reordering(0),
37 max_time_reordering_us(0), 37 max_time_reordering_us(0),
38 tcp_loss_events(0), 38 tcp_loss_events(0),
39 cwnd_increase_congestion_avoidance(0), 39 cwnd_increase_congestion_avoidance(0),
40 cwnd_increase_cubic_mode(0), 40 cwnd_increase_cubic_mode(0),
41 connection_creation_time(QuicTime::Zero()) { 41 connection_creation_time(QuicTime::Zero()) {
42 } 42 }
43 43
44 QuicConnectionStats::~QuicConnectionStats() {} 44 QuicConnectionStats::~QuicConnectionStats() {
45 }
45 46
46 ostream& operator<<(ostream& os, const QuicConnectionStats& s) { 47 ostream& operator<<(ostream& os, const QuicConnectionStats& s) {
47 os << "{ bytes sent: " << s.bytes_sent 48 os << "{ bytes sent: " << s.bytes_sent << ", packets sent:" << s.packets_sent
48 << ", packets sent:" << s.packets_sent
49 << ", stream bytes sent: " << s.stream_bytes_sent 49 << ", stream bytes sent: " << s.stream_bytes_sent
50 << ", packets discarded: " << s.packets_discarded 50 << ", packets discarded: " << s.packets_discarded
51 << ", bytes received: " << s.bytes_received 51 << ", bytes received: " << s.bytes_received
52 << ", packets received: " << s.packets_received 52 << ", packets received: " << s.packets_received
53 << ", packets processed: " << s.packets_processed 53 << ", packets processed: " << s.packets_processed
54 << ", stream bytes received: " << s.stream_bytes_received 54 << ", stream bytes received: " << s.stream_bytes_received
55 << ", bytes retransmitted: " << s.bytes_retransmitted 55 << ", bytes retransmitted: " << s.bytes_retransmitted
56 << ", packets retransmitted: " << s.packets_retransmitted 56 << ", packets retransmitted: " << s.packets_retransmitted
57 << ", bytes spuriously retransmitted: " << s.bytes_spuriously_retransmitted 57 << ", bytes spuriously retransmitted: " << s.bytes_spuriously_retransmitted
58 << ", packets spuriously retransmitted: " 58 << ", packets spuriously retransmitted: "
59 << s.packets_spuriously_retransmitted 59 << s.packets_spuriously_retransmitted
60 << ", packets lost: " << s.packets_lost 60 << ", packets lost: " << s.packets_lost
61 << ", slowstart packets lost: " << s.slowstart_packets_lost 61 << ", slowstart packets lost: " << s.slowstart_packets_lost
62 << ", packets revived: " << s.packets_revived 62 << ", packets revived: " << s.packets_revived
63 << ", packets dropped:" << s.packets_dropped 63 << ", packets dropped:" << s.packets_dropped
64 << ", crypto retransmit count: " << s.crypto_retransmit_count 64 << ", crypto retransmit count: " << s.crypto_retransmit_count
65 << ", rto count: " << s.rto_count 65 << ", rto count: " << s.rto_count << ", tlp count: " << s.tlp_count
66 << ", tlp count: " << s.tlp_count 66 << ", min_rtt(us): " << s.min_rtt_us << ", srtt(us): " << s.srtt_us
67 << ", min_rtt(us): " << s.min_rtt_us
68 << ", srtt(us): " << s.srtt_us
69 << ", max packet size: " << s.max_packet_size 67 << ", max packet size: " << s.max_packet_size
70 << ", estimated bandwidth: " << s.estimated_bandwidth 68 << ", estimated bandwidth: " << s.estimated_bandwidth
71 << ", congestion window: " << s.congestion_window 69 << ", congestion window: " << s.congestion_window
72 << ", tcp_loss_events: " << s.tcp_loss_events 70 << ", tcp_loss_events: " << s.tcp_loss_events
73 << ", packets reordered: " << s.packets_reordered 71 << ", packets reordered: " << s.packets_reordered
74 << ", max sequence reordering: " << s.max_sequence_reordering 72 << ", max sequence reordering: " << s.max_sequence_reordering
75 << ", max time reordering(us): " << s.max_time_reordering_us 73 << ", max time reordering(us): " << s.max_time_reordering_us
76 << ", total amount of cwnd increase in TCPCubic, in congestion avoidance: " 74 << ", total amount of cwnd increase in TCPCubic, in congestion avoidance: "
77 << s.cwnd_increase_congestion_avoidance 75 << s.cwnd_increase_congestion_avoidance
78 << ", amount of cwnd increase in TCPCubic, in cubic mode: " 76 << ", amount of cwnd increase in TCPCubic, in cubic mode: "
79 << s.cwnd_increase_cubic_mode 77 << s.cwnd_increase_cubic_mode << "}\n";
80 << "}\n";
81 return os; 78 return os;
82 } 79 }
83 80
84 } // namespace net 81 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698