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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include <ostream> | 11 #include <ostream> |
9 | 12 |
10 #include "base/basictypes.h" | |
11 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
12 #include "net/quic/quic_bandwidth.h" | 14 #include "net/quic/quic_bandwidth.h" |
13 #include "net/quic/quic_protocol.h" | 15 #include "net/quic/quic_protocol.h" |
14 #include "net/quic/quic_time.h" | 16 #include "net/quic/quic_time.h" |
15 | 17 |
16 namespace net { | 18 namespace net { |
17 // Structure to hold stats for a QuicConnection. | 19 // Structure to hold stats for a QuicConnection. |
18 struct NET_EXPORT_PRIVATE QuicConnectionStats { | 20 struct NET_EXPORT_PRIVATE QuicConnectionStats { |
19 QuicConnectionStats(); | 21 QuicConnectionStats(); |
20 ~QuicConnectionStats(); | 22 ~QuicConnectionStats(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 56 |
55 QuicPacketCount packets_revived; | 57 QuicPacketCount packets_revived; |
56 QuicPacketCount packets_dropped; // Duplicate or less than least unacked. | 58 QuicPacketCount packets_dropped; // Duplicate or less than least unacked. |
57 size_t crypto_retransmit_count; | 59 size_t crypto_retransmit_count; |
58 // Count of times the loss detection alarm fired. At least one packet should | 60 // Count of times the loss detection alarm fired. At least one packet should |
59 // be lost when the alarm fires. | 61 // be lost when the alarm fires. |
60 size_t loss_timeout_count; | 62 size_t loss_timeout_count; |
61 size_t tlp_count; | 63 size_t tlp_count; |
62 size_t rto_count; // Count of times the rto timer fired. | 64 size_t rto_count; // Count of times the rto timer fired. |
63 | 65 |
64 int64 min_rtt_us; // Minimum RTT in microseconds. | 66 int64_t min_rtt_us; // Minimum RTT in microseconds. |
65 int64 srtt_us; // Smoothed RTT in microseconds. | 67 int64_t srtt_us; // Smoothed RTT in microseconds. |
66 QuicByteCount max_packet_size; | 68 QuicByteCount max_packet_size; |
67 QuicByteCount max_received_packet_size; | 69 QuicByteCount max_received_packet_size; |
68 QuicBandwidth estimated_bandwidth; | 70 QuicBandwidth estimated_bandwidth; |
69 | 71 |
70 // Reordering stats for received packets. | 72 // Reordering stats for received packets. |
71 // Number of packets received out of packet number order. | 73 // Number of packets received out of packet number order. |
72 QuicPacketCount packets_reordered; | 74 QuicPacketCount packets_reordered; |
73 // Maximum reordering observed in packet number space. | 75 // Maximum reordering observed in packet number space. |
74 QuicPacketNumber max_sequence_reordering; | 76 QuicPacketNumber max_sequence_reordering; |
75 // Maximum reordering observed in microseconds | 77 // Maximum reordering observed in microseconds |
76 int64 max_time_reordering_us; | 78 int64_t max_time_reordering_us; |
77 | 79 |
78 // The following stats are used only in TcpCubicSender. | 80 // The following stats are used only in TcpCubicSender. |
79 // The number of loss events from TCP's perspective. Each loss event includes | 81 // The number of loss events from TCP's perspective. Each loss event includes |
80 // one or more lost packets. | 82 // one or more lost packets. |
81 uint32 tcp_loss_events; | 83 uint32_t tcp_loss_events; |
82 | 84 |
83 // Creation time, as reported by the QuicClock. | 85 // Creation time, as reported by the QuicClock. |
84 QuicTime connection_creation_time; | 86 QuicTime connection_creation_time; |
85 }; | 87 }; |
86 | 88 |
87 } // namespace net | 89 } // namespace net |
88 | 90 |
89 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ | 91 #endif // NET_QUIC_QUIC_CONNECTION_STATS_H_ |
OLD | NEW |