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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 years, 9 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
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 88ca35d97a710dbb605f2e3ffb73047b0cd446f3..e4d77e8c632c409a2706a1530180dd76db28956f 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -4144,6 +4144,51 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram base="true" name="BackgroundFetch.EventDispatchFailure.Dispatch"
+ enum="ServiceWorkerStatusCode">
+<!-- Name completed by histogram_suffixes name="BackgroundFetchEvents" -->
+
+ <owner>peter@chromium.org</owner>
+ <summary>
+ Records the Service Worker status code that caused a Background Fetch API
+ event to fail dispatching whilst trying to dispatch an event on the active
+ Service Worker.
+ </summary>
+</histogram>
+
+<histogram base="true" name="BackgroundFetch.EventDispatchFailure.FindWorker"
+ enum="ServiceWorkerStatusCode">
+<!-- Name completed by histogram_suffixes name="BackgroundFetchEvents" -->
+
+ <owner>peter@chromium.org</owner>
+ <summary>
+ Records the Service Worker status code that caused a Background Fetch API
+ event to fail dispatching whilst trying to find the Service Worker.
+ </summary>
+</histogram>
+
+<histogram base="true" name="BackgroundFetch.EventDispatchFailure.StartWorker"
+ enum="ServiceWorkerStatusCode">
+<!-- Name completed by histogram_suffixes name="BackgroundFetchEvents" -->
+
+ <owner>peter@chromium.org</owner>
+ <summary>
+ Records the Service Worker status code that caused a Background Fetch API
+ event to fail dispatching whilst trying to start the active Service Worker.
+ </summary>
+</histogram>
+
+<histogram base="true" name="BackgroundFetch.EventDispatchResult"
+ enum="BackgroundFetchEventDispatchResult">
+<!-- Name completed by histogram_suffixes name="BackgroundFetchEvents" -->
+
+ <owner>peter@chromium.org</owner>
+ <summary>
+ Records the result of dispatching one of the Background Fetch API events to
+ the Service Worker associated with the event.
+ </summary>
+</histogram>
+
<histogram name="BackgroundMode.BackgroundApplicationsCount">
<owner>atwilson@chromium.org</owner>
<owner>mvanouwerkerk@chromium.org</owner>
@@ -62586,6 +62631,24 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="ServiceWorker.BackgroundFetchAbortEvent.Time" units="ms">
+ <owner>peter@chromium.org</owner>
+ <summary>
+ The time taken between dispatching a BackgroundFetchAbortEvent to a Service
+ Worker and receiving a message that it finished handling the event. Includes
+ the time for the waitUntil() promise to settle.
+ </summary>
+</histogram>
+
+<histogram name="ServiceWorker.BackgroundFetchClickEvent.Time" units="ms">
+ <owner>peter@chromium.org</owner>
+ <summary>
+ The time taken between dispatching a BackgroundFetchClickEvent to a Service
+ Worker and receiving a message that it finished handling the event. Includes
+ the time for the waitUntil() promise to settle.
+ </summary>
+</histogram>
+
<histogram name="ServiceWorker.BackgroundSyncEvent.Time" units="ms">
<owner>jkarlin@chromium.org</owner>
<summary>
@@ -82086,6 +82149,13 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="2" label="Ok, got it"/>
</enum>
+<enum name="BackgroundFetchEventDispatchResult" type="int">
+ <int value="0" label="Success"/>
+ <int value="1" label="Cannot find worker"/>
+ <int value="2" label="Cannot start worker"/>
+ <int value="3" label="Cannot dispatch the event"/>
+</enum>
+
<enum name="BackgroundFetchTrigger" type="int">
<int value="0" label="Wake-up of the persistent scheduler"/>
<int value="1" label="NTP opened"/>
@@ -108925,6 +108995,8 @@ from previous Chrome versions.
<int value="20" label="NAVIGATION_HINT_LINK_TAP_DOWN"/>
<int value="21" label="EXTERNAL_REQUEST"/>
<int value="22" label="PAYMENT_REQUEST"/>
+ <int value="23" label="BACKGROUND_FETCH_ABORT"/>
+ <int value="24" label="BACKGROUND_FETCH_CLICK"/>
</enum>
<enum name="ServiceWorkerPreparationType" type="int">
@@ -114889,6 +114961,15 @@ from previous Chrome versions.
<affected-histogram name="Autofill.UnmaskPrompt.Duration"/>
</histogram_suffixes>
+<histogram_suffixes name="BackgroundFetchEvents" separator=".">
+ <suffix name="AbortEvent" label="BackgroundFetchAbortEvent"/>
+ <suffix name="ClickEvent" label="BackgroundFetchClickEvent"/>
+ <affected-histogram name="BackgroundFetch.EventDispatchFailure.Dispatch"/>
+ <affected-histogram name="BackgroundFetch.EventDispatchFailure.FindWorker"/>
+ <affected-histogram name="BackgroundFetch.EventDispatchFailure.StartWorker"/>
+ <affected-histogram name="BackgroundFetch.EventDispatchResult"/>
+</histogram_suffixes>
+
<histogram_suffixes name="BadBlockCounts" separator=".">
<suffix name="Backupsys" label="backupsys partition"/>
<suffix name="Bbt" label="bbt partition"/>

Powered by Google App Engine
This is Rietveld 408576698