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 #ifndef NET_QUIC_QUIC_CONNECTION_STATS_H_ | 5 #ifndef NET_QUIC_QUIC_CONNECTION_STATS_H_ |
6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ | 6 #define NET_QUIC_QUIC_CONNECTION_STATS_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 QuicPacketCount slowstart_packets_lost; | 49 QuicPacketCount slowstart_packets_lost; |
50 | 50 |
51 QuicPacketCount packets_revived; | 51 QuicPacketCount packets_revived; |
52 QuicPacketCount packets_dropped; // Duplicate or less than least unacked. | 52 QuicPacketCount packets_dropped; // Duplicate or less than least unacked. |
53 size_t crypto_retransmit_count; | 53 size_t crypto_retransmit_count; |
54 // Count of times the loss detection alarm fired. At least one packet should | 54 // Count of times the loss detection alarm fired. At least one packet should |
55 // be lost when the alarm fires. | 55 // be lost when the alarm fires. |
56 size_t loss_timeout_count; | 56 size_t loss_timeout_count; |
57 size_t tlp_count; | 57 size_t tlp_count; |
58 size_t rto_count; // Count of times the rto timer fired. | 58 size_t rto_count; // Count of times the rto timer fired. |
59 size_t spurious_rto_count; | |
60 | 59 |
61 int64 min_rtt_us; // Minimum RTT in microseconds. | 60 int64 min_rtt_us; // Minimum RTT in microseconds. |
62 int64 srtt_us; // Smoothed RTT in microseconds. | 61 int64 srtt_us; // Smoothed RTT in microseconds. |
63 QuicByteCount max_packet_size; | 62 QuicByteCount max_packet_size; |
64 QuicBandwidth estimated_bandwidth; | 63 QuicBandwidth estimated_bandwidth; |
65 | 64 |
66 // Reordering stats for received packets. | 65 // Reordering stats for received packets. |
67 // Number of packets received out of sequence number order. | 66 // Number of packets received out of sequence number order. |
68 QuicPacketCount packets_reordered; | 67 QuicPacketCount packets_reordered; |
69 // Maximum reordering observed in sequence space. | 68 // Maximum reordering observed in sequence space. |
70 QuicPacketSequenceNumber max_sequence_reordering; | 69 QuicPacketSequenceNumber max_sequence_reordering; |
71 // Maximum reordering observed in microseconds | 70 // Maximum reordering observed in microseconds |
72 int64 max_time_reordering_us; | 71 int64 max_time_reordering_us; |
73 | 72 |
74 // The following stats are used only in TcpCubicSender. | 73 // The following stats are used only in TcpCubicSender. |
75 // The number of loss events from TCP's perspective. Each loss event includes | 74 // The number of loss events from TCP's perspective. Each loss event includes |
76 // one or more lost packets. | 75 // one or more lost packets. |
77 uint32 tcp_loss_events; | 76 uint32 tcp_loss_events; |
78 // Total amount of cwnd increase by TCPCubic in congestion avoidance. | |
79 QuicPacketCount cwnd_increase_congestion_avoidance; | |
80 // Total amount of cwnd increase by TCPCubic in cubic mode. | |
81 QuicPacketCount cwnd_increase_cubic_mode; | |
82 | 77 |
83 // Creation time, as reported by the QuicClock. | 78 // Creation time, as reported by the QuicClock. |
84 QuicTime connection_creation_time; | 79 QuicTime connection_creation_time; |
85 }; | 80 }; |
86 | 81 |
87 } // namespace net | 82 } // namespace net |
88 | 83 |
89 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ | 84 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ |
OLD | NEW |