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

Unified Diff: net/base/net_log_event_type_list.h

Issue 17518002: Add logging to the QUIC write path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed one Created 7 years, 6 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 | « no previous file | net/quic/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log_event_type_list.h
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h
index 1fea29f3f8db9065187b98f8aea51cda332b650d..def4e5e141cb5b329d09beeac1f61b740325e4b6 100644
--- a/net/base/net_log_event_type_list.h
+++ b/net/base/net_log_event_type_list.h
@@ -1279,6 +1279,15 @@ EVENT_TYPE(QUIC_SESSION_CLOSE_ON_ERROR)
// }
EVENT_TYPE(QUIC_SESSION_PACKET_RECEIVED)
+// Session sent a QUIC packet.
+// {
+// "encryption_level": <The EncryptionLevel of the packet>
+// "packet_sequence_number": <The packet's full 64-bit sequence number,
+// as a base-10 string.>,
+// "size": <The size of the packet in bytes>
+// }
+EVENT_TYPE(QUIC_SESSION_PACKET_SENT)
+
// Session received a QUIC packet header for a valid packet.
// {
// "guid": <The 64-bit GUID for this connection, as a base-10 string>,
@@ -1299,6 +1308,15 @@ EVENT_TYPE(QUIC_SESSION_PACKET_HEADER_RECEIVED)
// }
EVENT_TYPE(QUIC_SESSION_STREAM_FRAME_RECEIVED)
+// Session sent a STREAM frame.
+// {
+// "stream_id": <The id of the stream which this data is for>,
+// "fin": <True if this is the final data set by the peer on this stream>,
+// "offset": <Offset in the byte stream where this data starts>,
+// "length": <Length of the data in this frame>,
+// }
+EVENT_TYPE(QUIC_SESSION_STREAM_FRAME_SENT)
+
// Session received an ACK frame.
// {
// "sent_info": <Details of packet sent by the peer>
@@ -1317,14 +1335,40 @@ EVENT_TYPE(QUIC_SESSION_STREAM_FRAME_RECEIVED)
// }
EVENT_TYPE(QUIC_SESSION_ACK_FRAME_RECEIVED)
+// Session sent an ACK frame.
+// {
+// "sent_info": <Details of packet sent by the peer>
+// {
+// "least_unacked": <Lowest sequence number of a packet sent by the peer
+// for which it has not received an ACK>,
+// }
+// "received_info": <Details of packet received by the peer>
+// {
+// "largest_observed": <The largest sequence number of a packet received
+// by (or inferred by) the peer>,
+// "missing": <List of sequence numbers of packets lower than
+// largest_observed which have not been received by the
+// peer>,
+// }
+// }
+EVENT_TYPE(QUIC_SESSION_ACK_FRAME_SENT)
+
// Session recevied a RST_STREAM frame.
// {
// "offset": <Offset in the byte stream which triggered the reset>,
-// "error_code": <QuicErrorCode in the frame>,
+// "quic_rst_stream_error": <QuicRstStreamErrorCode in the frame>,
// "details": <Human readable description>,
// }
EVENT_TYPE(QUIC_SESSION_RST_STREAM_FRAME_RECEIVED)
+// Session sent a RST_STREAM frame.
+// {
+// "offset": <Offset in the byte stream which triggered the reset>,
+// "quic_rst_stream_error": <QuicRstStreamErrorCode in the frame>,
+// "details": <Human readable description>,
+// }
+EVENT_TYPE(QUIC_SESSION_RST_STREAM_FRAME_SENT)
+
// Session received a CONGESTION_FEEDBACK frame.
// {
// "type": <The specific type of feedback being provided>,
@@ -1346,13 +1390,41 @@ EVENT_TYPE(QUIC_SESSION_RST_STREAM_FRAME_RECEIVED)
// }
EVENT_TYPE(QUIC_SESSION_CONGESTION_FEEDBACK_FRAME_RECEIVED)
+// Session received a CONGESTION_FEEDBACK frame.
+// {
+// "type": <The specific type of feedback being provided>,
+// Other per-feedback type details:
+//
+// for InterArrival:
+// "accumulated_number_of_lost_packets": <Total number of lost packets
+// over the life of this session>,
+// "received_packets": <List of strings of the form:
+// <sequence_number>@<receive_time_in_ms>>,
+//
+// for FixRate:
+// "bitrate_in_bytes_per_second": <The configured bytes per second>,
+//
+// for TCP:
+// "accumulated_number_of_lost_packets": <Total number of lost packets
+// over the life of this session>,
+// "receive_window": <Number of bytes in the receive window>,
+// }
+EVENT_TYPE(QUIC_SESSION_CONGESTION_FEEDBACK_FRAME_SENT)
+
// Session received a CONNECTION_CLOSE frame.
// {
-// "error_code": <QuicErrorCode in the frame>,
+// "quic_error": <QuicErrorCode in the frame>,
// "details": <Human readable description>,
// }
EVENT_TYPE(QUIC_SESSION_CONNECTION_CLOSE_FRAME_RECEIVED)
+// Session received a CONNECTION_CLOSE frame.
+// {
+// "quic_error": <QuicErrorCode in the frame>,
+// "details": <Human readable description>,
+// }
+EVENT_TYPE(QUIC_SESSION_CONNECTION_CLOSE_FRAME_SENT)
+
// ------------------------------------------------------------------------
// QuicHttpStream
// ------------------------------------------------------------------------
« no previous file with comments | « no previous file | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698