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

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

Issue 1264203002: bluetooth: Add histograms and logging for requestDevice() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-web-bluetooth-action
Patch Set: Created 5 years, 5 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/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.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 e16727c2aa6bed7f73d2ba3fc283b9ad22979c3b..c7f51750d2e6a3935f3896c1551c6bc99a93453d 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -2712,18 +2712,6 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
-<histogram name="Bluetooth.RequestDevice.Outcome"
- enum="BluetoothRequestDeviceOutcome">
- <owner>jyasskin@chromium.org</owner>
- <owner>ortuno@chromium.org</owner>
- <owner>scheib@chromium.org</owner>
- <summary>
- Records the result of a navigator.bluetooth.requestDevice() call. Used to
- understand what errors developers are getting so we can target efforts
- toward the most common ones.
- </summary>
-</histogram>
-
<histogram name="Bookmarks.LaunchDepth">
<owner>yfriedman@chromium.org</owner>
<summary>
@@ -48304,6 +48292,65 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<summary>HTTP response codes seen by Wallet client.</summary>
</histogram>
+<histogram name="WebBluetooth.RequestDevice.Filters.Count" units="filters">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records how many filters are used when scanning. This results will help us
+ better understand the uses of the API and make changes according to
+ developers' behavior.
+ </summary>
+</histogram>
+
+<histogram name="WebBluetooth.RequestDevice.Filters.Services"
+ enum="GATTServices">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records what GATT Services are used when scanning. This will help us know if
+ we should build an API for specific services rather than a general Bluetooth
+ API.
+ </summary>
+</histogram>
+
+<histogram name="WebBluetooth.RequestDevice.OptionalServices.Count"
+ units="filters">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records how many optional services are used when scanning. This results will
+ help us better understand the uses of the API and make changes according to
+ developers' behavior.
+ </summary>
+</histogram>
+
+<histogram name="WebBluetooth.RequestDevice.OptionalServices.Services"
+ units="GATTServices">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records how many optional services are used when scanning. This results will
+ help us better understand the uses of the API and make changes according to
+ developers' behavior.
+ </summary>
+</histogram>
+
+<histogram name="WebBluetooth.RequestDevice.Outcome"
+ enum="WebBluetoothRequestDeviceOutcome">
+ <owner>jyasskin@chromium.org</owner>
+ <owner>ortuno@chromium.org</owner>
+ <owner>scheib@chromium.org</owner>
+ <summary>
+ Records the result of a navigator.bluetooth.requestDevice() call. Used to
+ understand what errors developers are getting so we can target efforts
+ toward the most common ones.
+ </summary>
+</histogram>
+
<histogram name="WebController.ExternalURLRequestBlocking"
enum="IOSExternalURLRequestStatus">
<owner>jyquinn@chromium.org</owner>
@@ -51604,15 +51651,6 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="8" label="Unknown or unhandler error"/>
</enum>
-<enum name="BluetoothRequestDeviceOutcome" type="int">
- <int value="0" label="Success"/>
- <int value="1" label="No Bluetooth adapter"/>
- <int value="2" label="No RenderFrameHost for message source"/>
- <int value="3" label="Discovery start failed"/>
- <int value="4" label="Discovery stop failed"/>
- <int value="5" label="No matching devices found"/>
-</enum>
-
<enum name="BookmarksExperimentState" type="int">
<int value="0" label="No experiment"/>
<int value="1" label="Experiment enabled (sync)"/>
@@ -58794,6 +58832,42 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="8" label="Overflow"/>
</enum>
+<enum name="GATTServices" type="int">
+ <int value="0" label="unknown"/>
+ <int value="1" label="alert_notification"/>
+ <int value="2" label="automation_io"/>
+ <int value="3" label="battery_service"/>
+ <int value="4" label="blood_pressure"/>
+ <int value="5" label="body_composition"/>
+ <int value="6" label="bond_management"/>
+ <int value="7" label="continuous_glucose_monitoring"/>
+ <int value="8" label="current_time"/>
+ <int value="9" label="cycling_power"/>
+ <int value="10" label="cycling_speed_and_cadence"/>
+ <int value="11" label="device_information"/>
+ <int value="12" label="environmental_sensing"/>
+ <int value="13" label="generic_access"/>
+ <int value="14" label="generic_attribute"/>
+ <int value="15" label="glucose"/>
+ <int value="16" label="health_thermometer"/>
+ <int value="17" label="heart_rate"/>
+ <int value="18" label="human_interface_device"/>
+ <int value="19" label="immediate_alert"/>
+ <int value="20" label="indoor_positioning"/>
+ <int value="21" label="internet_protocol_support"/>
+ <int value="22" label="link_loss"/>
+ <int value="23" label="location_and_navigation"/>
+ <int value="24" label="next_dst_change"/>
+ <int value="25" label="phone_alert_status"/>
+ <int value="26" label="pulse_oximeter"/>
+ <int value="27" label="reference_time_update"/>
+ <int value="28" label="running_speed_and_cadence"/>
+ <int value="29" label="scan_parameters"/>
+ <int value="30" label="tx_power"/>
+ <int value="31" label="user_data"/>
+ <int value="32" label="weight_scale"/>
+</enum>
+
<enum name="GCMCheckinRequestStatus" type="int">
<int value="0" label="Success"/>
<int value="1" label="URL fetching failed"/>
@@ -71018,6 +71092,16 @@ 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="WebBluetoothRequestDeviceOutcome" type="int">
+ <int value="0" label="Success"/>
+ <int value="1" label="No Bluetooth adapter"/>
+ <int value="2" label="No RenderFrameHost for message source"/>
+ <int value="3" label="Discovery start failed"/>
+ <int value="4" label="Discovery stop failed"/>
+ <int value="5" label="No matching devices found"/>
+ <int value="6" label="Bluetooth adapter is off."/>
+</enum>
+
<enum name="WebFontCacheHit" type="int">
<int value="0" label="Miss"/>
<int value="1" label="Hit"/>
« no previous file with comments | « content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698