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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchRequest.h

Issue 1987013002: Add UMA to track time between preload discovery and reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@preload_timing_uma
Patch Set: update histograms.xml to be a bit clearer Created 4 years, 7 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 | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index 1518bbd593a38d4dd9b6d4db3f8d170cc3020a57..a7bbf5a1f9d114eb0b3cd424433e31285cda84fd 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -85,7 +85,9 @@ public:
ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPreferences; }
bool forPreload() const { return m_forPreload; }
- void setForPreload(bool forPreload) { m_forPreload = forPreload; }
+ void setForPreload(bool forPreload, double discoveryTime = 0);
+
+ double preloadDiscoveryTime() { return m_preloadDiscoveryTime; }
bool isLinkPreload() { return m_linkPreload; }
void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
@@ -104,6 +106,7 @@ private:
ResourceLoadPriority m_priority;
bool m_forPreload;
bool m_linkPreload;
+ double m_preloadDiscoveryTime;
DeferOption m_defer;
OriginRestriction m_originRestriction;
ResourceWidth m_resourceWidth;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698