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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 398683002: Adding logging to quic for tracegraf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_sent_packet_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 5ca809d532a92d335abcaf5de7be827a7365bfd5..b5ca9fe9e51f08f7f93e6fe3aeb4ce2a9643c3d7 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -155,6 +155,13 @@ void QuicSentPacketManager::OnRetransmittedPacket(
unacked_packets_.OnRetransmittedPacket(old_sequence_number,
new_sequence_number,
transmission_type);
+
+ if (debug_delegate_ != NULL) {
+ debug_delegate_->OnRetransmittedPacket(old_sequence_number,
+ new_sequence_number,
+ transmission_type,
+ clock_->ApproximateNow());
+ }
}
void QuicSentPacketManager::OnIncomingAck(
@@ -188,6 +195,14 @@ void QuicSentPacketManager::OnIncomingAck(
consecutive_tlp_count_ = 0;
consecutive_crypto_retransmission_count_ = 0;
}
+
+ if (debug_delegate_ != NULL) {
+ debug_delegate_->OnIncomingAck(received_info,
+ ack_receive_time,
+ largest_observed_,
+ largest_observed_acked,
+ GetLeastUnackedSentPacket());
+ }
}
void QuicSentPacketManager::MaybeInvokeCongestionEvent(
@@ -498,6 +513,10 @@ bool QuicSentPacketManager::OnPacketSent(
has_retransmittable_data);
unacked_packets_.SetSent(sequence_number, sent_time, bytes, in_flight);
+ if (debug_delegate_ != NULL) {
+ debug_delegate_->OnSentPacket(sequence_number, sent_time, bytes);
+ }
+
// Reset the retransmission timer anytime a pending packet is sent.
return in_flight;
}
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698