From 59e9fa67a1ec68ade816a84d161dc4da93c7419f Mon Sep 17 00:00:00 2001 From: Liang Li Date: Fri, 7 Feb 2025 17:48:44 -0800 Subject: Add metrics logging for Bluetooth offload socket Bug: 399022276 Flag: EXEMPT, metrics update Test: m com.google.android.bt Test: Android Data Hub Atom Tester Change-Id: Ib5a4a0d6970287388851bcf5fdb71121e3092b76 --- system/common/metrics.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'system/common/metrics.h') diff --git a/system/common/metrics.h b/system/common/metrics.h index 8cd41bd6db..69e7ed67ca 100644 --- a/system/common/metrics.h +++ b/system/common/metrics.h @@ -459,11 +459,17 @@ void LogSdpAttribute(const RawAddress& address, uint16_t protocol_uuid, uint16_t * by |server_port| * @param socket_role role of this socket, server or connection * @param uid socket owner's uid + * @param connection_duration_ms duration of socket connection in milliseconds + * @param error_code error code of socket failures + * @param is_hardware_offload whether this is a offload socket */ void LogSocketConnectionState(const RawAddress& address, int port, int type, android::bluetooth::SocketConnectionstateEnum connection_state, int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, - android::bluetooth::SocketRoleEnum socket_role); + android::bluetooth::SocketRoleEnum socket_role, + uint64_t connection_duration_ms, + android::bluetooth::SocketErrorEnum error_code, + bool is_hardware_offload); /** * Logs when a Bluetooth device's manufacturer information is learnt -- cgit v1.2.3-59-g8ed1b