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

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

Issue 1270603010: bluetooth: Add histograms and logging for connectGATT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uma-requestDevice
Patch Set: Merge with ToT Created 5 years, 4 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/browser/bluetooth/bluetooth_dispatcher_host.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 321071409e9b4fc30000226cbe50dc1614a7b327..b72fb164eaa0fcecad8b508e5ab8699d11b606f1 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -2752,6 +2752,38 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Bluetooth.Web.ConnectGATT.Outcome"
+ enum="WebBluetoothConnectGATTOutcome">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records the result of a device.connectGATT() call. Used to understand what
+ errors developers are getting so we can target efforts toward the most
+ common ones.
+ </summary>
+</histogram>
+
+<histogram name="Bluetooth.Web.ConnectGATT.TimeFailed" units="milliseconds">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records how long it takes for a connection attempt to fail. Use to let
+ developers know how to better wait for and handle connection errors.
+ </summary>
+</histogram>
+
+<histogram name="Bluetooth.Web.ConnectGATT.TimeSuccess" units="milliseconds">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records how long it takes for a device to successfully connect. Use to let
+ developers know how long it should take to connect to a BLE device.
+ </summary>
+</histogram>
+
<histogram name="Bluetooth.Web.FunctionCall.Count" enum="WebBluetoothFunction">
<owner>jyasskin@chromium.org</owner>
<owner>ortuno@chromium.org</owner>
@@ -71700,6 +71732,19 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="5" label="Policy"/>
</enum>
+<enum name="WebBluetoothConnectGATTOutcome" type="int">
+ <int value="0" label="Success"/>
+ <int value="1" label="Device no longer in range"/>
+ <int value="2" label="Unknown Error"/>
+ <int value="3" label="In Progress"/>
+ <int value="4" label="Failed"/>
+ <int value="5" label="Auth Failed"/>
+ <int value="6" label="Auth Canceled"/>
+ <int value="7" label="Auth Rejected"/>
+ <int value="8" label="Auth Timeout"/>
+ <int value="9" label="Unsupported Device"/>
+</enum>
+
<enum name="WebBluetoothFunction" type="int">
<int value="0" label="requestDevice()"/>
<int value="1" label="connectGATT()"/>
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698