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
3 // found in the LICENSE file.
5 #include "net/quic/quic_connection_stats.h"
11 QuicConnectionStats::QuicConnectionStats()
17 stream_bytes_received(0),
18 bytes_retransmitted(0),
19 packets_retransmitted(0),
24 estimated_bandwidth(0) {
27 QuicConnectionStats::~QuicConnectionStats() {}
29 ostream
& operator<<(ostream
& os
, const QuicConnectionStats
& s
) {
30 os
<< "{ bytes sent: " << s
.bytes_sent
31 << ", packets sent:" << s
.packets_sent
32 << ", stream bytes sent: " << s
.stream_bytes_sent
33 << ", bytes received: " << s
.bytes_received
34 << ", packets received: " << s
.packets_received
35 << ", stream bytes received: " << s
.stream_bytes_received
36 << ", bytes retransmitted: " << s
.bytes_retransmitted
37 << ", packets retransmitted: " << s
.packets_retransmitted
38 << ", packets revived: " << s
.packets_revived
39 << ", packets dropped:" << s
.packets_dropped
40 << ", rto count: " << s
.rto_count
41 << ", rtt(us): " << s
.rtt
42 << ", estimated_bandwidth: " << s
.estimated_bandwidth