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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.h

Issue 632033002: Add PLT measurement to Resource Prefetching for Mobile Web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid using STATIC_HISTOGRAM_POINTER_BLOCK 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
Index: chrome/browser/predictors/resource_prefetch_predictor.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
index 7a1166e849238d18a2d970abc3391bb5506a580d..1bd58749f96a62257da693f3e95775ce73a34083 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -264,6 +264,14 @@ class ResourcePrefetchPredictor
size_t max_data_map_size,
PrefetchDataMap* data_map);
+ // Reports overall page load time.
+ void ReportPageLoadTimeStats(base::TimeDelta plt) const;
+
+ // Reports page load time for prefetched and not prefetched pages
+ void ReportPageLoadTimePrefetchedStats(PrefetchKeyType key_type,
+ base::TimeDelta plt) const;
+ void ReportPageLoadTimeNotPrefetchedStats(base::TimeDelta plt) const;
+
// Reports accuracy by comparing prefetched resources with resources that are
// actually used by the page.
void ReportAccuracyStats(PrefetchKeyType key_type,

Powered by Google App Engine
This is Rietveld 408576698