Bug 1442068 - Add diagnostic probe for tab switch spinners r?liuche draft
authorDoug Thayer <dothayer@mozilla.com>
Thu, 01 Mar 2018 15:03:03 -0800
changeset 766593 72151325a9749b57c129e8425e62ea7e98739b5d
parent 766504 c2d022018003ac2746632933b1049d2c21a5f74f
child 766594 4a9d20677a4ae6b0509b7b0f1ea81c6d48caaa94
push id102364
push userbmo:dothayer@mozilla.com
push dateTue, 13 Mar 2018 03:41:16 +0000
reviewersliuche
bugs1442068
milestone61.0a1
Bug 1442068 - Add diagnostic probe for tab switch spinners r?liuche We currently have a few probes which measure how long tab switch spinners are displayed, but we have little information into their source. In diagnosing and attempting to lower the number of spinners that users see, we could use more information about their source to help prioritize and narrow in on regions of code. MozReview-Commit-ID: Cw4ejOM9ZSl
toolkit/components/telemetry/Histograms.json
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -5956,16 +5956,26 @@
     "low": 1000,
     "high": 64000,
     "n_buckets": 7,
     "bug_numbers": [1301104],
     "alert_emails": ["mconley@mozilla.com"],
     "releaseChannelCollection": "opt-out",
     "description": "Firefox: If the spinner interstitial displays during tab switching, records the time in ms the graphic is visible. This probe is similar to FX_TAB_SWITCH_SPINNER_VISIBLE_MS, but is for truly degenerate cases."
   },
+  "FX_TAB_SWITCH_SPINNER_VISIBLE_TRIGGER": {
+    "record_in_processes": ["main"],
+    "alert_emails": ["dothayer@mozilla.com"],
+    "bug_numbers": [1442068],
+    "expires_in_version": "63",
+    "kind": "categorical",
+    "labels": ["none", "preActions", "postActions", "onLoadTimeout", "onLayersReady", "onSizeModeOrOcc", "onEndSwapDocShells"],
+    "releaseChannelCollection": "opt-out",
+    "description": "Diagnostic probe to aid in categorizing tab switch spinners. Records what most recently set the loadTimer to null if a spinner was displayed."
+  },
   "FX_TAB_SWITCH_REQUEST_TAB_WARMING_STATE": {
     "record_in_processes": ["main"],
     "expires_in_version": "63",
     "alert_emails": ["mconley@mozilla.com"],
     "releaseChannelCollection": "opt-out",
     "kind": "categorical",
     "labels": [
       "disqualified",