Commit 2333fd21 authored by Matt Mueller's avatar Matt Mueller Committed by Commit Bot

Quic: Only log key update count histogram for connections that supported key update.

Bug: b/170619368
Change-Id: Ibea31679adb343c79335f884ca5675d75b252ffe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2493821Reviewed-by: default avatarDavid Schinazi <dschinazi@chromium.org>
Commit-Queue: Matt Mueller <mattm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820090}
parent 0187a9a9
...@@ -1869,8 +1869,10 @@ void QuicChromiumClientSession::OnConnectionClosed( ...@@ -1869,8 +1869,10 @@ void QuicChromiumClientSession::OnConnectionClosed(
"Net.QuicSession.ConnectionDuration", "Net.QuicSession.ConnectionDuration",
tick_clock_->NowTicks() - connect_timing_.connect_end); tick_clock_->NowTicks() - connect_timing_.connect_end);
UMA_HISTOGRAM_COUNTS_100("Net.QuicSession.NumMigrations", num_migrations_); UMA_HISTOGRAM_COUNTS_100("Net.QuicSession.NumMigrations", num_migrations_);
base::UmaHistogramCounts100("Net.QuicSession.KeyUpdate.PerConnection", if (config()->KeyUpdateSupportedForConnection()) {
connection()->GetStats().key_update_count); base::UmaHistogramCounts100("Net.QuicSession.KeyUpdate.PerConnection2",
connection()->GetStats().key_update_count);
}
} else { } else {
if (error == quic::QUIC_PUBLIC_RESET) { if (error == quic::QUIC_PUBLIC_RESET) {
RecordHandshakeFailureReason(HANDSHAKE_FAILURE_PUBLIC_RESET); RecordHandshakeFailureReason(HANDSHAKE_FAILURE_PUBLIC_RESET);
......
...@@ -2929,6 +2929,10 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -2929,6 +2929,10 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
<histogram name="Net.QuicSession.KeyUpdate.PerConnection" units="count" <histogram name="Net.QuicSession.KeyUpdate.PerConnection" units="count"
expires_after="2021-05-11"> expires_after="2021-05-11">
<obsolete>
Replaced 2020-10-22 with Net.QuicSession.KeyUpdate.PerConnection2 that is
only logged for connections which supported key update.
</obsolete>
<owner>mattm@chromium.org</owner> <owner>mattm@chromium.org</owner>
<owner>src/net/quic/OWNERS</owner> <owner>src/net/quic/OWNERS</owner>
<summary> <summary>
...@@ -2937,6 +2941,17 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -2937,6 +2941,17 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
</summary> </summary>
</histogram> </histogram>
<histogram name="Net.QuicSession.KeyUpdate.PerConnection2" units="count"
expires_after="2021-05-11">
<owner>mattm@chromium.org</owner>
<owner>src/net/quic/OWNERS</owner>
<summary>
The number of key updates processed per connection, recorded on connection
close. Only logged for connections which reached the 1-RTT level and
supported key update.
</summary>
</histogram>
<histogram <histogram
name="Net.QuicSession.LastInFlightPacketSentTimeFromHandshakeCompletionWithPublicReset" name="Net.QuicSession.LastInFlightPacketSentTimeFromHandshakeCompletionWithPublicReset"
units="ms" expires_after="2021-05-11"> units="ms" expires_after="2021-05-11">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment