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

Unified Diff: content/browser/bluetooth/bluetooth_metrics.cc

Issue 1286883002: bluetooth: Add histograms and logging for getCharacteristic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uma-refactoring
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:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/bluetooth/bluetooth_metrics.cc
diff --git a/content/browser/bluetooth/bluetooth_metrics.cc b/content/browser/bluetooth/bluetooth_metrics.cc
index af7216a81b765108afb1abcd057698f8099752f7..99b7fdb554b5ce589a9ebb4a6e688ff4cc006916 100644
--- a/content/browser/bluetooth/bluetooth_metrics.cc
+++ b/content/browser/bluetooth/bluetooth_metrics.cc
@@ -140,6 +140,23 @@ void BluetoothMetrics::RecordGetPrimaryServiceOutcome(
static_cast<int>(UMAGetPrimaryServiceOutcome::COUNT));
}
+// getCharacteristic
+
+// static
+void BluetoothMetrics::RecordGetCharacteristicOutcome(
+ UMAGetCharacteristicOutcome outcome) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Bluetooth.Web.GetCharacteristic.Outcome", static_cast<int>(outcome),
+ static_cast<int>(UMAGetCharacteristicOutcome::COUNT));
+}
+
+// static
+void BluetoothMetrics::RecordGetCharacteristicCharacteristic(
+ const std::string& characteristic) {
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Bluetooth.Web.GetCharacteristic.Characteristic",
+ HashUUID(characteristic));
+}
+
// read/write characteristic
// static

Powered by Google App Engine
This is Rietveld 408576698