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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/http/disk_cache_based_quic_server_info.h ('k') | net/quic/quic_connection_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index d55349e1bf906a053d1265c2006bf120448bc54c..44332c9307668263b52bd86e6692c81c5972ea06 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -78,6 +78,7 @@ DiskCacheBasedQuicServerInfo::DiskCacheBasedQuicServerInfo(
void DiskCacheBasedQuicServerInfo::Start() {
DCHECK(CalledOnValidThread());
DCHECK_EQ(GET_BACKEND, state_);
+ load_start_time_ = base::TimeTicks::Now();
DoLoop(OK);
}
@@ -312,6 +313,8 @@ int DiskCacheBasedQuicServerInfo::DoWaitForDataReadyDone() {
}
entry_ = NULL;
Parse(data_);
+ UMA_HISTOGRAM_TIMES("Net.QuicServerInfo.DiskCacheLoadTime",
+ base::TimeTicks::Now() - load_start_time_);
return OK;
}
« no previous file with comments | « net/http/disk_cache_based_quic_server_info.h ('k') | net/quic/quic_connection_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698