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

Unified Diff: tools/metrics/histograms/histograms.xml

Issue 632033002: Add PLT measurement to Resource Prefetching for Mobile Web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 2a910891a1968a4a03f4e3b151eacecef2781f04..0c6a33fbd26c0009ce17b97c4349238f23f66730 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -28407,6 +28407,24 @@ Therefore, the affected-histogram name has to have at least one dot in it.
</summary>
</histogram>
+<histogram name="ResourcePrefetchPredictor.NetworkType"
+ enum="ResourcePrefetchPredictorNetworkType">
+ <owner>zhenw@chromium.org</owner>
+ <summary>
+ Records the number of pages on each type of network after a page is loaded.
+ </summary>
+</histogram>
+
+<histogram name="ResourcePrefetchPredictor.PLT" units="milliseconds">
+ <owner>zhenw@chromium.org</owner>
+ <summary>
+ Page load time. It starts from when the main frame URL request is sent out
+ to when the main frame document load is completed.
+
+ This is recorded for both prefetched and non-prefetched pages.
+ </summary>
+</histogram>
+
<histogram name="ResourcePrefetchPredictor.PredictedPrefetchCount">
<obsolete>
Deprecated 01/2013. Replaced with specific ones for Url and Host.
@@ -52225,6 +52243,19 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="2" label="NAVIGATION_STATUS_ABANDONED"/>
</enum>
+<enum name="ResourcePrefetchPredictorNetworkType" type="int">
+ <int value="-2" label="CONNECTION_ALL"/>
+ <int value="-1" label="CONNECTION_CELLULAR"/>
+ <int value="0" label="CONNECTION_UNKNOWN"/>
+ <int value="1" label="CONNECTION_ETHERNET"/>
+ <int value="2" label="CONNECTION_WIFI"/>
+ <int value="3" label="CONNECTION_2G"/>
+ <int value="4" label="CONNECTION_3G"/>
+ <int value="5" label="CONNECTION_4G"/>
+ <int value="6" label="CONNECTION_NONE"/>
+ <int value="7" label="CONNECTION_BLUETOOTH"/>
+</enum>
+
<enum name="ResourcePrefetchPredictorReportingEvent" type="int">
<int value="0" label="REPORTING_EVENT_ALL_HISTORY_CLEARED"/>
<int value="1" label="REPORTING_EVENT_PARTIAL_HISTORY_CLEARED"/>
@@ -58641,6 +58672,48 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="Event.Latency.Renderer2"/>
</histogram_suffixes>
+<histogram_suffixes name="ResourcePrefetchPredictorNetworkTypePrefetch"
+ separator=".">
+ <suffix name="NotPrefetched"
+ label="Number of non-prefetched pages on each type of network."/>
+ <suffix name="Prefetched"
+ label="Number of prefetched pages on each type of network."/>
+ <affected-histogram name="ResourcePrefetchPredictor.NetworkType"/>
+</histogram_suffixes>
+
+<histogram_suffixes name="ResourcePrefetchPredictorPLTNetworkTypes">
+ <suffix name="2G" label="Page load time in 2G network."/>
+ <suffix name="3G" label="Page load time in 3G network."/>
+ <suffix name="4G" label="Page load time in 4G network."/>
+ <suffix name="Bluetooth" label="Page load time in bluetooth network."/>
+ <suffix name="Cellular" label="Page load time in cellular network."/>
+ <suffix name="Ethernet" label="Page load time in Ethernet."/>
+ <suffix name="None" label="Page load time without network connection."/>
+ <suffix name="Unknown" label="Page load time in unknown type of network."/>
+ <suffix name="WiFi" label="Page load time in WiFi network."/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT"/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT.NotPrefetched"/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT.Prefetched"/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT.Prefetched.Host"/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT.Prefetched.Url"/>
+</histogram_suffixes>
+
+<histogram_suffixes name="ResourcePrefetchPredictorPLTPrefetch" separator=".">
+ <suffix name="NotPrefetched"
+ label="Page load time for non-prefetched pages."/>
+ <suffix name="Prefetched" label="Page load time for prefetched pages."/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT"/>
+</histogram_suffixes>
+
+<histogram_suffixes name="ResourcePrefetchPredictorPLTPrefetchType"
+ separator=".">
+ <suffix name="Host"
+ label="Page load time for prefetched pages based on main frame host."/>
+ <suffix name="Url"
+ label="Page load time for prefetched pages based on main frame URL."/>
+ <affected-histogram name="ResourcePrefetchPredictor.PLT.Prefetched"/>
+</histogram_suffixes>
+
<histogram_suffixes name="ResourcePrefetchPredictorPredictedStatsVariedMax">
<suffix name="25"
label="Covers statistics when the maximum subresources that can be
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698