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

Unified Diff: net/quic/quic_stats.h

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stats.h
diff --git a/net/quic/quic_stats.h b/net/quic/quic_stats.h
new file mode 100644
index 0000000000000000000000000000000000000000..252791e80de7702bf11a91d98138a7b879bbb9b7
--- /dev/null
+++ b/net/quic/quic_stats.h
@@ -0,0 +1,50 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_QUIC_STATS_H_
+#define NET_QUIC_QUIC_STATS_H_
+
+#include "base/basictypes.h"
+#include "net/base/net_export.h"
+
+namespace net {
+// TODO(satyamshekhar): Add more interesting stats:
+// 1. (C/S)HLO retransmission count.
+// 2. SHLO received to first stream packet processed time.
+// 3. CHLO sent to SHLO received time.
+// 4. Number of migrations.
+// 5. Number of out of order packets.
+// 6. Avg packet size.
+// 7. Number of connections that require more that 1-RTT.
+// 8. Avg number of streams / session.
+// 9. Number of duplicates received.
+// 10. Fraction of traffic sent/received that was not data (protocol overhead).
+// 11. Fraction of data transferred that was padding.
+
+// Structure to hold stats for a QuicConnection.
+struct NET_EXPORT_PRIVATE QuicConnectionStats {
+ QuicConnectionStats();
+ ~QuicConnectionStats();
+
+ uint64 bytes_sent; // includes retransmissions, fec.
+ uint32 packets_sent;
+
+ uint64 bytes_received; // includes duplicate data for a stream, fec.
+ uint32 packets_received; // includes dropped packets
+
+ uint64 bytes_retransmitted;
+ uint32 packets_retransmitted;
+
+ uint32 packets_revived;
+ uint32 packets_dropped; // duplicate or less than least unacked.
+ uint32 rto_count;
+
+ uint32 rtt;
+ uint64 estimated_bandwidth;
+ // TODO(satyamshekhar): Add window_size, mss and mtu.
+};
+
+} // namespace net
+
+#endif // NET_QUIC_QUIC_STATS_H_
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698