Commit 4591d36 1 parent e1e0b79 commit 4591d36 Copy full SHA for 4591d36
File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -1729,6 +1729,28 @@ void QuicChromiumClientSession::OnConnectionClosed(
1729
1729
->sent_packet_manager ()
1730
1730
.unacked_packets ()
1731
1731
.GetLastPacketContent ());
1732
+
1733
+ const quic::QuicTime last_in_flight_packet_sent_time =
1734
+ connection ()
1735
+ ->sent_packet_manager ()
1736
+ .unacked_packets ()
1737
+ .GetLastInFlightPacketSentTime ();
1738
+ const quic::QuicTime handshake_completion_time =
1739
+ connection ()->GetStats ().handshake_completion_time ;
1740
+ if (last_in_flight_packet_sent_time.IsInitialized () &&
1741
+ handshake_completion_time.IsInitialized () &&
1742
+ last_in_flight_packet_sent_time >= handshake_completion_time) {
1743
+ const quic::QuicTime::Delta delay =
1744
+ last_in_flight_packet_sent_time - handshake_completion_time;
1745
+ UMA_HISTOGRAM_LONG_TIMES_100 (
1746
+ " Net.QuicSession."
1747
+ " LastInFlightPacketSentTimeFromHandshakeCompletionWithPublicReset" ,
1748
+ base::TimeDelta::FromMilliseconds (delay.ToMilliseconds ()));
1749
+ }
1750
+
1751
+ UMA_HISTOGRAM_LONG_TIMES_100 (
1752
+ " Net.QuicSession.ConnectionDurationWithPublicReset" ,
1753
+ tick_clock_->NowTicks () - connect_timing_.connect_end );
1732
1754
}
1733
1755
if (OneRttKeysAvailable ()) {
1734
1756
base::HistogramBase* histogram = base::SparseHistogram::FactoryGet (
Original file line number Diff line number Diff line change @@ -101671,6 +101671,13 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
101671
101671
</summary>
101672
101672
</histogram>
101673
101673
101674
+ <histogram name="Net.QuicSession.ConnectionDurationWithPublicReset" units="ms"
101675
+ expires_after="2021-05-11">
101676
+ <owner>fayang@chromium.org</owner>
101677
+ <owner>src/net/quic/OWNERS</owner>
101678
+ <summary>Duration of connections received PUBLIC_RESET.</summary>
101679
+ </histogram>
101680
+
101674
101681
<histogram name="Net.QuicSession.ConnectionFlowControlBlocked"
101675
101682
enum="BooleanBlocked" expires_after="2021-05-11">
101676
101683
<owner>dschinazi@chromium.org</owner>
@@ -102036,6 +102043,17 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
102036
102043
</summary>
102037
102044
</histogram>
102038
102045
102046
+ <histogram
102047
+ name="Net.QuicSession.LastInFlightPacketSentTimeFromHandshakeCompletionWithPublicReset"
102048
+ units="ms" expires_after="2021-05-11">
102049
+ <owner>fayang@chromium.org</owner>
102050
+ <owner>src/net/quic/OWNERS</owner>
102051
+ <summary>
102052
+ Time from handshake completion to last packet was sent for connections
102053
+ received PUBLIC_RESET.
102054
+ </summary>
102055
+ </histogram>
102056
+
102039
102057
<histogram name="Net.QuicSession.LastSentPacketContentBeforePublicReset"
102040
102058
units="bitfield value" expires_after="2021-05-11">
102041
102059
<owner>fayang@chromium.org</owner>
You can’t perform that action at this time.
0 commit comments