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

Unified Diff: chrome/browser/net/predictor.cc

Issue 16514008: Add metrics for calculating precision/recall of link navigation pre-connect triggers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index 9afc3742742c77de58222676959671eced95d6ec..03347f449a0220206bc5f4f5b37284ad96aedbb7 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -847,6 +847,10 @@ void Predictor::PreconnectUrlOnIOThread(
const GURL& url, const GURL& first_party_for_cookies,
jar (doing other things) 2013/06/10 03:17:16 nit: one arg per line for definitions and declarat
kouhei (in TOK) 2013/06/10 23:24:05 Ack.
kouhei (in TOK) 2013/06/14 16:49:42 I would like to address this in other CL.
UrlInfo::ResolutionMotivation motivation, int count) {
GURL canonical_url(CanonicalizeUrl(url));
+
+ UMA_HISTOGRAM_BOOLEAN(
+ "Net.PreconnectsUnique",
+ recent_preconnects_.WasRecentlySeen(canonical_url));
jar (doing other things) 2013/06/10 03:17:16 Why is this an interesting stat? I expect that co
recent_preconnects_.SetRecentlySeen(canonical_url);
PreconnectOnIOThread(url,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698