| OLD | NEW |
| 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 |
| 11 QuicConnectionStats::QuicConnectionStats() | 11 QuicConnectionStats::QuicConnectionStats() |
| 12 : bytes_sent(0), | 12 : bytes_sent(0), |
| 13 packets_sent(0), | 13 packets_sent(0), |
| 14 stream_bytes_sent(0), | 14 stream_bytes_sent(0), |
| 15 bytes_received(0), | 15 bytes_received(0), |
| 16 packets_received(0), | 16 packets_received(0), |
| 17 stream_bytes_received(0), | 17 stream_bytes_received(0), |
| 18 bytes_retransmitted(0), | 18 bytes_retransmitted(0), |
| 19 packets_retransmitted(0), | 19 packets_retransmitted(0), |
| 20 packets_spuriously_retransmitted(0), | 20 packets_spuriously_retransmitted(0), |
| 21 packets_lost(0), | 21 packets_lost(0), |
| 22 packets_revived(0), | 22 packets_revived(0), |
| 23 packets_dropped(0), | 23 packets_dropped(0), |
| 24 crypto_retransmit_count(0), | 24 crypto_retransmit_count(0), |
| 25 loss_timeout_count(0), |
| 25 tlp_count(0), | 26 tlp_count(0), |
| 26 rto_count(0), | 27 rto_count(0), |
| 27 rtt(0), | 28 rtt(0), |
| 28 estimated_bandwidth(0) { | 29 estimated_bandwidth(0) { |
| 29 } | 30 } |
| 30 | 31 |
| 31 QuicConnectionStats::~QuicConnectionStats() {} | 32 QuicConnectionStats::~QuicConnectionStats() {} |
| 32 | 33 |
| 33 ostream& operator<<(ostream& os, const QuicConnectionStats& s) { | 34 ostream& operator<<(ostream& os, const QuicConnectionStats& s) { |
| 34 os << "{ bytes sent: " << s.bytes_sent | 35 os << "{ bytes sent: " << s.bytes_sent |
| (...skipping 12 matching lines...) Expand all Loading... |
| 47 << ", crypto retransmit count: " << s.crypto_retransmit_count | 48 << ", crypto retransmit count: " << s.crypto_retransmit_count |
| 48 << ", rto count: " << s.rto_count | 49 << ", rto count: " << s.rto_count |
| 49 << ", tlp count: " << s.tlp_count | 50 << ", tlp count: " << s.tlp_count |
| 50 << ", rtt(us): " << s.rtt | 51 << ", rtt(us): " << s.rtt |
| 51 << ", estimated_bandwidth: " << s.estimated_bandwidth | 52 << ", estimated_bandwidth: " << s.estimated_bandwidth |
| 52 << "}\n"; | 53 << "}\n"; |
| 53 return os; | 54 return os; |
| 54 } | 55 } |
| 55 | 56 |
| 56 } // namespace net | 57 } // namespace net |
| OLD | NEW |