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

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

Issue 182063002: Add a time based loss detection algorithm to QUIC that loses packets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « net/quic/quic_connection_stats.h ('k') | net/quic/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/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
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
OLDNEW
« no previous file with comments | « net/quic/quic_connection_stats.h ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698