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

Unified Diff: net/quic/quic_crypto_client_stream.cc

Issue 189963002: QUIC - histograms to measure the time spent to read QUIC sever (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update UMA data Created 6 years, 9 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_crypto_client_stream.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_crypto_client_stream.cc
diff --git a/net/quic/quic_crypto_client_stream.cc b/net/quic/quic_crypto_client_stream.cc
index 237c1d378f07f5deb83a666f895b3f104fbc74a3..3e0ab229457456048f5685e555135b89fb7d2b2a 100644
--- a/net/quic/quic_crypto_client_stream.cc
+++ b/net/quic/quic_crypto_client_stream.cc
@@ -4,6 +4,7 @@
#include "net/quic/quic_crypto_client_stream.h"
+#include "base/metrics/histogram.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
#include "net/quic/crypto/crypto_protocol.h"
@@ -422,13 +423,15 @@ int QuicCryptoClientStream::DoLoadQuicServerInfo(
return OK;
}
+ read_start_time_ = base::TimeTicks::Now();
generation_counter_ = cached->generation_counter();
next_state_ = STATE_LOAD_QUIC_SERVER_INFO_COMPLETE;
- // TODO(rtenneti): If multiple tabs load the same URL, all requests except for
- // the first request send InchoateClientHello. Fix the code to handle multiple
- // requests. A possible solution is to wait for the first request to finish
- // and use the data from the disk cache for all requests.
+ // TODO(rtenneti): If multiple tabs load URLs with same hostname but different
Ryan Hamilton 2014/03/07 22:24:43 Please add a TODO to use the host:port and not jus
ramant (doing other things) 2014/03/07 22:34:01 Done.
+ // ports, all requests except for the first request send InchoateClientHello.
+ // Fix the code to handle multiple requests. A possible solution is to wait
+ // for the first request to finish and use the data from the disk cache for
+ // all requests.
// We may need to call quic_server_info->Persist later.
// quic_server_info->Persist requires quic_server_info to be ready, so we
// always call WaitForDataReady, even though we might have initialized
@@ -461,6 +464,9 @@ void QuicCryptoClientStream::LoadQuicServerInfo(
return;
}
+ UMA_HISTOGRAM_TIMES("Net.QuicServerInfo.DiskCacheReadTime",
+ base::TimeTicks::Now() - read_start_time_);
+
if (disk_cache_load_result_ != OK || !cached->LoadQuicServerInfo(
session()->connection()->clock()->WallNow())) {
// It is ok to proceed to STATE_SEND_CHLO when we cannot load QuicServerInfo
« no previous file with comments | « net/quic/quic_crypto_client_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698