Chromium Code Reviews| Index: tools/metrics/histograms/histograms.xml |
| diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml |
| index 21ca627e2e6d2cef03d2b79865b805b5dae8340d..618b2c460dd585fabab1b816366d0c08c807e028 100644 |
| --- a/tools/metrics/histograms/histograms.xml |
| +++ b/tools/metrics/histograms/histograms.xml |
| @@ -5139,6 +5139,54 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries. |
| </summary> |
| </histogram> |
| +<histogram name="Bluetooth.Web.GetDescriptor.Descriptor" |
| + enum="GATTDescriptorHash"> |
| + <owner>jyasskin@chromium.org</owner> |
| + <owner>ortuno@chromium.org</owner> |
| + <owner>scheib@chromium.org</owner> |
| + <summary> |
| + Records the UUIDs used when getting a descriptor. The recorded value is a |
| + 31-bit hash of the UUID. Used to know what types of descriptors to target |
| + when building libraries that use the Web Bluetooth API. |
| + </summary> |
| +</histogram> |
| + |
| +<histogram name="Bluetooth.Web.GetDescriptor.Outcome" |
| + enum="WebBluetoothGetDescriptorOutcome"> |
| + <owner>jyasskin@chromium.org</owner> |
| + <owner>ortuno@chromium.org</owner> |
| + <owner>scheib@chromium.org</owner> |
| + <summary> |
| + Records the outcome of a call to getDescriptor(). Used to understand what |
| + errors developers are getting so we can target efforts toward the most |
| + common ones. |
| + </summary> |
| +</histogram> |
| + |
| +<histogram name="Bluetooth.Web.GetDescriptors.Descriptor" |
| + enum="GATTDescriptorHash"> |
| + <owner>jyasskin@chromium.org</owner> |
| + <owner>ortuno@chromium.org</owner> |
| + <owner>scheib@chromium.org</owner> |
| + <summary> |
| + Records the UUIDs used when getting descriptors. The recorded value is a |
| + 31-bit hash of the UUID. Used to know what types of descriptors to target |
| + when building libraries that use the Web Bluetooth API. |
| + </summary> |
| +</histogram> |
| + |
| +<histogram name="Bluetooth.Web.GetDescriptors.Outcome" |
| + enum="WebBluetoothGetDescriptorOutcome"> |
| + <owner>jyasskin@chromium.org</owner> |
| + <owner>ortuno@chromium.org</owner> |
| + <owner>scheib@chromium.org</owner> |
| + <summary> |
| + Records the outcome of a call to getDescriptors(). 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.Outcome" |
| enum="WebBluetoothGetPrimaryServiceOutcome"> |
| <owner>jyasskin@chromium.org</owner> |
| @@ -91761,6 +91809,50 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries. |
| <int value="2140490935" label="gatt.service_changed"/> |
| </enum> |
| +<enum name="GATTDescriptorHash" type="int"> |
| + <int value="34360078" |
| + label="Environmental Sensing Configuration; |
| + 0000290b-0000-1000-8000-00805f9b34fb"/> |
| + <int value="212028968" |
| + label="Value Trigger Setting; 0000290a-0000-1000-8000-00805f9b34fb"/> |
| + <int value="434053918" |
| + label="Valid Range; 00002906-0000-1000-8000-00805f9b34fb"/> |
| +<!-- Hash values can be produced using tool: bluetooth_metrics_hash (Only built via GN, not GYP) --> |
|
ortuno
2017/02/03 23:16:33
nit: no need for the GYP mention. Also move the co
dougt
2017/02/03 23:33:49
Done.
|
| + |
| + <int value="475200414" |
| + label="Characteristic Aggregate Format; |
|
ortuno
2017/02/03 23:16:33
nit: Let's keep it consistent with the other hash
dougt
2017/02/03 23:33:49
This is the output of the recommended tool. For e
|
| + 00002905-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1007170263" |
| + label="Report Reference; 00002908-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1035573722" |
| + label="External Report Reference; 00002907-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1113090825" |
| + label="Characteristic Presentation Format; |
| + 00002904-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1130337922" |
| + label="Number of Digitals; 00002909-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1201129743" |
| + label="Client Characteristic Configuration; |
| + 00002902-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1208669602" |
| + label="Environmental Sensing Trigger Setting; |
| + 0000290d-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1322265676" |
| + label="Server Characteristic Configuration; |
| + 00002903-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1383133454" |
| + label="Environmental Sensing Measurement; |
| + 0000290c-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1406247203" |
| + label="Time Trigger Setting; 0000290e-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1504592234" |
| + label="Characteristic User Description; |
| + 00002901-0000-1000-8000-00805f9b34fb"/> |
| + <int value="1876461392" |
| + label="Characteristic Extended Properties; |
| + 00002900-0000-1000-8000-00805f9b34fb"/> |
| +</enum> |
| + |
| <enum name="GATTServiceHash" type="int"> |
| <!-- Hash values can be produced using tool: bluetooth_metrics_hash (Only built via GN, not GYP) --> |
| @@ -109609,6 +109701,10 @@ value. |
| <int value="8" label="RemoteGATTServer.disconnect()"/> |
| <int value="9" label="RemoteGATTService.getCharacteristics()"/> |
| <int value="10" label="RemoteGATTServer.getPrimaryServices()"/> |
| + <int value="11" label="RemoteGATTDescriptor.readValue()"/> |
| + <int value="12" label="RemoteGATTDescriptor.writeValue()"/> |
| + <int value="13" label="RemoteGATTCharacteristic.getDescriptor()"/> |
| + <int value="14" label="RemoteGATTCharacteristic.getDescriptors()"/> |
| </enum> |
| <enum name="WebBluetoothGATTOperationOutcome" type="int"> |
| @@ -109637,6 +109733,16 @@ value. |
| <int value="5" label="No characteristics"/> |
| </enum> |
| +<enum name="WebBluetoothGetDescriptorOutcome" type="int"> |
| + <int value="0" label="Success"/> |
| + <int value="1" label="No device"/> |
| + <int value="2" label="No service"/> |
| + <int value="3" label="No characteristic"/> |
| + <int value="4" label="Not found"/> |
| + <int value="5" label="Blocklisted"/> |
| + <int value="6" label="No descriptors"/> |
| +</enum> |
| + |
| <enum name="WebBluetoothGetPrimaryServiceOutcome" type="int"> |
| <int value="0" label="Success"/> |
| <int value="1" label="Device no longer in range."/> |