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

Unified Diff: net/quic/crypto/quic_server_info.h

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 | « no previous file | net/quic/quic_crypto_client_stream.cc » ('j') | net/quic/quic_crypto_client_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_server_info.h
diff --git a/net/quic/crypto/quic_server_info.h b/net/quic/crypto/quic_server_info.h
index 853504ae70f96882c3d1d5e66165097892554dc3..4b47511e79cb183a9183274ba6e0fe935d8c1051 100644
--- a/net/quic/crypto/quic_server_info.h
+++ b/net/quic/crypto/quic_server_info.h
@@ -55,6 +55,13 @@ class NET_EXPORT_PRIVATE QuicServerInfo {
// callback.
virtual void Persist() = 0;
+ // Helper methods used for computing time spent to read QUIC server
+ // information from disk cache.
+ const base::TimeTicks& read_start_time() const { return read_start_time_; }
+ void set_read_start_time(const base::TimeTicks& request_time) {
+ read_start_time_ = request_time;
+ }
+
struct State {
State();
~State();
@@ -94,6 +101,10 @@ class NET_EXPORT_PRIVATE QuicServerInfo {
// This is the QUIC server hostname for which we restore the crypto_config.
const std::string hostname_;
+
+ // Time when call to WaitForDataReady was made, used for computing time spent
+ // to read QUIC server information from disk cache.
+ base::TimeTicks read_start_time_;
};
class QuicServerInfoFactory {
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream.cc » ('j') | net/quic/quic_crypto_client_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698