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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_connection_stats.cc
diff --git a/net/quic/core/quic_connection_stats.cc b/net/quic/core/quic_connection_stats.cc
index 7d50bf8f56724d945023a2904b42834ddd6d69b0..7f7935b87deb14e627d630eb5e57f19d3ad2559b 100644
--- a/net/quic/core/quic_connection_stats.cc
+++ b/net/quic/core/quic_connection_stats.cc
@@ -48,4 +48,44 @@ QuicConnectionStats::QuicConnectionStats(const QuicConnectionStats& other) =
QuicConnectionStats::~QuicConnectionStats() {}
+ostream& operator<<(ostream& os, const QuicConnectionStats& s) {
+ os << "{ bytes_sent: " << s.bytes_sent;
+ os << " packets_sent: " << s.packets_sent;
+ os << " stream_bytes_sent: " << s.stream_bytes_sent;
+ os << " packets_discarded: " << s.packets_discarded;
+ os << " bytes_received: " << s.bytes_received;
+ os << " packets_received: " << s.packets_received;
+ os << " packets_processed: " << s.packets_processed;
+ os << " stream_bytes_received: " << s.stream_bytes_received;
+ os << " bytes_retransmitted: " << s.bytes_retransmitted;
+ os << " packets_retransmitted: " << s.packets_retransmitted;
+ os << " bytes_spuriously_retransmitted: " << s.bytes_spuriously_retransmitted;
+ os << " packets_spuriously_retransmitted: "
+ << s.packets_spuriously_retransmitted;
+ os << " packets_lost: " << s.packets_lost;
+ os << " slowstart_packets_sent: " << s.slowstart_packets_sent;
+ os << " slowstart_packets_lost: " << s.slowstart_packets_lost;
+ os << " slowstart_bytes_lost: " << s.slowstart_bytes_lost;
+ os << " packets_dropped: " << s.packets_dropped;
+ os << " crypto_retransmit_count: " << s.crypto_retransmit_count;
+ os << " loss_timeout_count: " << s.loss_timeout_count;
+ os << " tlp_count: " << s.tlp_count;
+ os << " rto_count: " << s.rto_count;
+ os << " min_rtt_us: " << s.min_rtt_us;
+ os << " srtt_us: " << s.srtt_us;
+ os << " max_packet_size: " << s.max_packet_size;
+ os << " max_received_packet_size: " << s.max_received_packet_size;
+ os << " estimated_bandwidth: " << s.estimated_bandwidth;
+ os << " packets_reordered: " << s.packets_reordered;
+ os << " max_sequence_reordering: " << s.max_sequence_reordering;
+ os << " max_time_reordering_us: " << s.max_time_reordering_us;
+ os << " tcp_loss_events: " << s.tcp_loss_events;
+ os << " connection_creation_time: "
+ << s.connection_creation_time.ToDebuggingValue();
+ os << " blocked_frames_received: " << s.blocked_frames_received;
+ os << " blocked_frames_sent: " << s.blocked_frames_sent << " }";
+
+ return os;
+}
+
} // namespace net
« 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