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

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: 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/crypto/quic_server_info.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..764bb30c93a3acc25da35ee673ac92e275ec5c20 100644
--- a/net/quic/quic_crypto_client_stream.cc
+++ b/net/quic/quic_crypto_client_stream.cc
@@ -4,6 +4,8 @@
#include "net/quic/quic_crypto_client_stream.h"
+#include "base/metrics/histogram.h"
+#include "base/time/time.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
#include "net/quic/crypto/crypto_protocol.h"
@@ -422,6 +424,7 @@ int QuicCryptoClientStream::DoLoadQuicServerInfo(
return OK;
}
+ quic_server_info->set_read_start_time(base::TimeTicks::Now());
Ryan Hamilton 2014/03/07 04:41:04 I would have expected that this start time would b
ramant (doing other things) 2014/03/07 06:09:28 We share the same quic_server_info (server config)
ramant (doing other things) 2014/03/07 16:23:57 We go to disk only once for each hostname. After t
ramant (doing other things) 2014/03/07 21:57:15 Changed the code to collect stats when we load ser
generation_counter_ = cached->generation_counter();
next_state_ = STATE_LOAD_QUIC_SERVER_INFO_COMPLETE;
@@ -454,6 +457,9 @@ void QuicCryptoClientStream::LoadQuicServerInfo(
QuicCryptoClientConfig::CachedState* cached) {
next_state_ = STATE_SEND_CHLO;
+ UMA_HISTOGRAM_TIMES("Net.QuicServerInfo.DiskCacheReadTime",
+ base::TimeTicks::Now() - cached->quic_server_info()->read_start_time());
+
// If someone else already saved a server config, we don't want to overwrite
// it. Also, if someone else saved a server config and then cleared it (so
// cached->IsEmpty() is true), we still want to load from QuicServerInfo.
« no previous file with comments | « net/quic/crypto/quic_server_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698