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

Unified Diff: net/quic/chromium/quic_connection_logger.cc

Issue 2239103002: Add histograms to record QUIC Min and Smoothed RTT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_connection_logger.cc
diff --git a/net/quic/chromium/quic_connection_logger.cc b/net/quic/chromium/quic_connection_logger.cc
index aa3318c3c245aff93443943e94ba8abac8d2c9f4..df5c499b5b812c37b72fc3d8f39a4021d728d63f 100644
--- a/net/quic/chromium/quic_connection_logger.cc
+++ b/net/quic/chromium/quic_connection_logger.cc
@@ -327,6 +327,12 @@ QuicConnectionLogger::~QuicConnectionLogger() {
UMA_HISTOGRAM_COUNTS("Net.QuicSession.HeadersStream.EarlyFramesReceived",
session_->headers_stream()->num_early_frames_received());
+ const QuicConnectionStats& stats = session_->connection()->GetStats();
+ UMA_HISTOGRAM_TIMES("Net.QuicSession.MinRTT",
+ base::TimeDelta::FromMicroseconds(stats.min_rtt_us));
+ UMA_HISTOGRAM_TIMES("Net.QuicSession.SmoothedRTT",
+ base::TimeDelta::FromMicroseconds(stats.srtt_us));
+
if (num_frames_received_ > 0) {
int duplicate_stream_frame_per_thousand =
num_duplicate_frames_received_ * 1000 / num_frames_received_;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698