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

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

Issue 2641813002: Add UMA for service worker navigation preload. (Closed)
Patch Set: patch for landing Created 3 years, 11 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:
Download patch
« no previous file with comments | « content/test/BUILD.gn ('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 e508c28079a10c0d90d69950546a0d65d893f624..2691621c0be66087e2cb70c57dd92a4016045adc 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -59631,6 +59631,17 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="ServiceWorker.ActivatedWorkerPreparationForMainFrame.Type"
+ enum="ServiceWorkerPreparationType">
+ <owner>falken@chromium.org</owner>
+ <summary>
+ The type of preparation needed for the browser to find and possibly start an
+ active worker to dispatch a FetchEvent for a main frame resource request.
+ See details at ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time.
+ The suffixed histograms for .Time record the time required for each type.
+ </summary>
+</histogram>
+
<histogram name="ServiceWorker.ActivateEvent.Time" units="ms">
<owner>shimazu@chromium.org</owner>
<summary>
@@ -104214,6 +104225,24 @@ value.
<int value="22" label="PAYMENT_REQUEST"/>
</enum>
+<enum name="ServiceWorkerPreparationType" type="int">
+ <summary>
+ The type of preparation that was required for the browser to find and
+ possibly start up a service worker to dispatch a fetch event to. From
+ ServiceWorkerMetrics::WorkerPreparationType.
+ </summary>
+ <int value="0" label="Unknown"/>
+ <int value="1"
+ label="The worker was already starting up. The browser waited for it
+ finish."/>
+ <int value="2" label="The worker was already running."/>
+ <int value="3"
+ label="The worker was stopping. Once stopped, the browser started it up"/>
+ <int value="4" label="The worker started up in a new process."/>
+ <int value="5" label="The worker started up in an existing process."/>
+ <int value="6" label="The worker started up during browser startup."/>
+</enum>
+
<enum name="ServiceWorkerReadResponseResult" type="int">
<int value="0" label="OK"/>
<int value="1" label="Read headers error"/>
@@ -112901,6 +112930,16 @@ value.
<affected-histogram name="Navigation.TimeToURLJobStart"/>
</histogram_suffixes>
+<histogram_suffixes name="NavigationPreloadEnabled">
+ <affected-histogram
+ name="ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time"/>
+ <affected-histogram
+ name="ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time_StartWorkerExistingProcess"/>
+ <suffix name="NavigationPreloadEnabled" label="Navigation preload occurred."/>
+ <affected-histogram
+ name="ServiceWorker.ActivatedWorkerPreparationForMainFrame.Type"/>
+</histogram_suffixes>
+
<histogram_suffixes name="Net.BidirectionalStreamExperiment" separator=".">
<owner>xunjieli@chromium.org</owner>
<suffix name="QUIC" label="Bidirectional streams that use QUIC protocol"/>
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698