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

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

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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/core/quic_connection_stats.h ('k') | net/quic/core/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 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/core/quic_connection_stats.h" 5 #include "net/quic/core/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 30 matching lines...) Expand all
41 tcp_loss_events(0), 41 tcp_loss_events(0),
42 connection_creation_time(QuicTime::Zero()), 42 connection_creation_time(QuicTime::Zero()),
43 blocked_frames_received(0), 43 blocked_frames_received(0),
44 blocked_frames_sent(0) {} 44 blocked_frames_sent(0) {}
45 45
46 QuicConnectionStats::QuicConnectionStats(const QuicConnectionStats& other) = 46 QuicConnectionStats::QuicConnectionStats(const QuicConnectionStats& other) =
47 default; 47 default;
48 48
49 QuicConnectionStats::~QuicConnectionStats() {} 49 QuicConnectionStats::~QuicConnectionStats() {}
50 50
51 ostream& operator<<(ostream& os, const QuicConnectionStats& s) {
52 os << "{ bytes_sent: " << s.bytes_sent;
53 os << " packets_sent: " << s.packets_sent;
54 os << " stream_bytes_sent: " << s.stream_bytes_sent;
55 os << " packets_discarded: " << s.packets_discarded;
56 os << " bytes_received: " << s.bytes_received;
57 os << " packets_received: " << s.packets_received;
58 os << " packets_processed: " << s.packets_processed;
59 os << " stream_bytes_received: " << s.stream_bytes_received;
60 os << " bytes_retransmitted: " << s.bytes_retransmitted;
61 os << " packets_retransmitted: " << s.packets_retransmitted;
62 os << " bytes_spuriously_retransmitted: " << s.bytes_spuriously_retransmitted;
63 os << " packets_spuriously_retransmitted: "
64 << s.packets_spuriously_retransmitted;
65 os << " packets_lost: " << s.packets_lost;
66 os << " slowstart_packets_sent: " << s.slowstart_packets_sent;
67 os << " slowstart_packets_lost: " << s.slowstart_packets_lost;
68 os << " slowstart_bytes_lost: " << s.slowstart_bytes_lost;
69 os << " packets_dropped: " << s.packets_dropped;
70 os << " crypto_retransmit_count: " << s.crypto_retransmit_count;
71 os << " loss_timeout_count: " << s.loss_timeout_count;
72 os << " tlp_count: " << s.tlp_count;
73 os << " rto_count: " << s.rto_count;
74 os << " min_rtt_us: " << s.min_rtt_us;
75 os << " srtt_us: " << s.srtt_us;
76 os << " max_packet_size: " << s.max_packet_size;
77 os << " max_received_packet_size: " << s.max_received_packet_size;
78 os << " estimated_bandwidth: " << s.estimated_bandwidth;
79 os << " packets_reordered: " << s.packets_reordered;
80 os << " max_sequence_reordering: " << s.max_sequence_reordering;
81 os << " max_time_reordering_us: " << s.max_time_reordering_us;
82 os << " tcp_loss_events: " << s.tcp_loss_events;
83 os << " connection_creation_time: "
84 << s.connection_creation_time.ToDebuggingValue();
85 os << " blocked_frames_received: " << s.blocked_frames_received;
86 os << " blocked_frames_sent: " << s.blocked_frames_sent << " }";
87
88 return os;
89 }
90
51 } // namespace net 91 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_stats.h ('k') | net/quic/core/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698