summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/quic/quic_client_session.cc4
-rw-r--r--tools/metrics/histograms/histograms.xml12
2 files changed, 16 insertions, 0 deletions
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index 2635d68..e52b3c3 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -433,6 +433,10 @@ QuicClientSession::CreateOutgoingReliableStreamImpl() {
ActivateStream(stream);
++num_total_streams_;
UMA_HISTOGRAM_COUNTS("Net.QuicSession.NumOpenStreams", GetNumOpenStreams());
+ // The previous histogram puts 100 in a bucket betweeen 86-113 which does
+ // not shed light on if chrome ever things it has more than 100 streams open.
+ UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.TooManyOpenStream",
+ GetNumOpenStreams() > 100);
return stream;
}
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 4f31a19..3e26b9d 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -20054,6 +20054,13 @@ Therefore, the affected-histogram name has to have at least one dot in it.
</summary>
</histogram>
+<histogram name="Net.QuicSession.TooManyOpenStreams" enum="BooleanTooMany">
+ <owner>rch@chromium.org</owner>
+ <summary>
+ True if more than 100 streams are open when a new stream is activated.
+ </summary>
+</histogram>
+
<histogram name="Net.QuicSession.TruncatedAcksReceived">
<owner>rch@chromium.org</owner>
<summary>The number of truncated ACK frames received.</summary>
@@ -46139,6 +46146,11 @@ Therefore, the affected-histogram name has to have at least one dot in it.
<int value="1" label="Timed out"/>
</enum>
+<enum name="BooleanTooMany" type="int">
+ <int value="0" label="Correct"/>
+ <int value="1" label="Too many"/>
+</enum>
+
<enum name="BooleanUnknown" type="int">
<int value="0" label="Known"/>
<int value="1" label="Unknown"/>