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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 1271043002: bluetooth: Add histograms and logging for getPrimaryService() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uma-connecta-gatt
Patch Set: Merge 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 b72fb164eaa0fcecad8b508e5ab8699d11b606f1..ff429773ddb367ab42a3e992db55f38200ca4774 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -2793,6 +2793,30 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Bluetooth.Web.GetPrimaryService.Outcome"
+ enum="WebBluetoothGetPrimaryServiceOutcome">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records the result of a GATTServer.getPrimaryService() 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.GetPrimaryService.Services"
+ enum="GATTServiceHash">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records what GATT Services are used when connected. The record value is a
+ 31-bit hash of the Service UUID. This will help us know if we should build
+ an API for specific services rather than a general Bluetooth API.
+ </summary>
+</histogram>
+
<histogram name="Bluetooth.Web.RequestDevice.Filters.Count" units="filters">
<owner>jyasskin@chromium.org</owner>
<owner>ortuno@chromium.org</owner>
@@ -71754,6 +71778,12 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="5" label="Characteristic.writeValue()"/>
</enum>
+<enum name="WebBluetoothGetPrimaryServiceOutcome" type="int">
+ <int value="0" label="Success"/>
+ <int value="1" label="Device no longer in range."/>
+ <int value="2" label="No services with provided UUID."/>
+</enum>
+
<enum name="WebBluetoothRequestDeviceOutcome" type="int">
<int value="0" label="Success"/>
<int value="1" label="No Bluetooth adapter"/>
« 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