summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http/http_cache_transaction.cc7
-rw-r--r--net/url_request/url_request_http_job.cc8
2 files changed, 15 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index d9f4f49..f5f7d3c 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -939,6 +939,13 @@ int HttpCache::Transaction::DoAddToEntryComplete(int result) {
const base::TimeDelta entry_lock_wait =
base::TimeTicks::Now() - entry_lock_waiting_since_;
UMA_HISTOGRAM_TIMES("HttpCache.EntryLockWait", entry_lock_wait);
+ static const bool prefetching_fieldtrial =
+ base::FieldTrialList::TrialExists("Prefetch");
+ if (prefetching_fieldtrial) {
+ UMA_HISTOGRAM_TIMES(
+ base::FieldTrial::MakeName("HttpCache.EntryLockWait", "Prefetch"),
+ entry_lock_wait);
+ }
static const bool prerendering_fieldtrial =
base::FieldTrialList::TrialExists("Prerender");
if (prerendering_fieldtrial) {
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 5b6b986f..3a4e9da 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1179,6 +1179,14 @@ void URLRequestHttpJob::RecordTimer() {
to_start);
}
+ static const bool use_prefetch_histogram =
+ base::FieldTrialList::TrialExists("Prefetch");
+ if (use_prefetch_histogram) {
+ UMA_HISTOGRAM_MEDIUM_TIMES(
+ base::FieldTrial::MakeName("Net.HttpTimeToFirstByte",
+ "Prefetch"),
+ to_start);
+ }
static const bool use_prerender_histogram =
base::FieldTrialList::TrialExists("Prerender");
if (use_prerender_histogram) {