diff options
author | Jack He <siyuanh@google.com> | 2017-01-17 16:13:48 -0800 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2017-01-17 16:18:31 -0800 |
commit | b5633d92c0debaf5b07dc3973a880c31a940421c (patch) | |
tree | 83044389f7964e77ca9631daa60cb93216aea34d | |
parent | be82cf8b0006b9d1da7a5b1bbd6303c954459959 (diff) | |
download | android_packages_apps_Bluetooth-b5633d92c0debaf5b07dc3973a880c31a940421c.tar.gz android_packages_apps_Bluetooth-b5633d92c0debaf5b07dc3973a880c31a940421c.tar.bz2 android_packages_apps_Bluetooth-b5633d92c0debaf5b07dc3973a880c31a940421c.zip |
Add counters for true number of events being logged
* The metrics module drops oldest event when event size goes beyond its
logging capacity
* The understand whether events were dropped, we want to log the true
number of events.
Bug: 33694310
Test: Code compilation
Change-Id: I381e1cbdf6d08ec2d6e98a53cd27593b700b3d2a
-rw-r--r-- | src/com/android/bluetooth/btservice/bluetooth.proto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/btservice/bluetooth.proto b/src/com/android/bluetooth/btservice/bluetooth.proto index 871a13a4b..c616c10a2 100644 --- a/src/com/android/bluetooth/btservice/bluetooth.proto +++ b/src/com/android/bluetooth/btservice/bluetooth.proto @@ -28,6 +28,18 @@ message BluetoothLog { // Number of bonded devices. optional int32 num_bonded_devices = 5; + + // Number of BluetoothSession including discarded ones beyond capacity + optional int64 num_bluetooth_session = 6; + + // Number of PairEvent including discarded ones beyond capacity + optional int64 num_pair_event = 7; + + // Number of WakeEvent including discarded ones beyond capacity + optional int64 num_wake_event = 8; + + // Number of ScanEvent including discarded ones beyond capacity + optional int64 num_scan_event = 9; } // The information about the device. |