Loading system/gd/os/chromeos/metrics.cc +23 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,29 @@ void LogMetricHfpPacketLossStats( .Record(); } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) { std::string boot_id; if (!metrics::GetBootId(&boot_id)) return; LOG_DEBUG( "MmcTranscodeRttStats: %s, %d, %f, %d, %d", boot_id.c_str(), maximum_rtt, mean_rtt, num_requests, codec_type); ::metrics::structured::events::bluetooth::BluetoothMmcTranscodeRtt() .SetBootId(boot_id) .SetMaximumRtt(maximum_rtt) .SetMeanRtt(mean_rtt) .SetNumRequests(num_requests) .SetCodecType(codec_type) .Record(); } void LogMetricReadRssiResult( const Address& address, uint16_t handle, uint32_t cmd_status, int8_t rssi) {} Loading system/gd/os/host/metrics.cc +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ void LogMetricHfpPacketLossStats( const Address& address, int num_decoded_frames, double packet_loss_ratio, uint16_t codec_type) { } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) {} void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t rssi) {} void LogMetricReadFailedContactCounterResult( Loading system/gd/os/linux/metrics.cc +3 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,9 @@ void LogMetricHfpPacketLossStats( const Address& address, int num_decoded_frames, double packet_loss_ratio, uint16_t codec_type) { } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) {} void LogMetricBluetoothHalCrashReason( const Address& address, uint32_t error_code, uint32_t vendor_error_code) {} Loading system/gd/os/metrics.h +11 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,17 @@ void LogMetricHfpPacketLossStats( double packet_loss_ratio, uint16_t codec_id); /** * Log Mmc transcode round-trip time statistics * * @param maximum_rtt maximum round-trip time in this session * @param mean_rtt the average of round-trip time in this session * @param num_requests the number of transcoding requests in the session * @param codec_type codec type used in this session */ void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type); /** * Log read RSSI result * Loading system/main/shim/metrics_api.cc +6 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,12 @@ void LogMetricHfpPacketLossStats(const RawAddress& raw_address, packet_loss_ratio, codec_type); } void LogMetricMmcTranscodeRttStats(int maximum_rtt, double mean_rtt, int num_requests, int codec_type) { bluetooth::os::LogMetricMmcTranscodeRttStats(maximum_rtt, mean_rtt, num_requests, codec_type); } void LogMetricReadRssiResult(const RawAddress& raw_address, uint16_t handle, uint32_t cmd_status, int8_t rssi) { Address address = bluetooth::ToGdAddress(raw_address); Loading Loading
system/gd/os/chromeos/metrics.cc +23 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,29 @@ void LogMetricHfpPacketLossStats( .Record(); } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) { std::string boot_id; if (!metrics::GetBootId(&boot_id)) return; LOG_DEBUG( "MmcTranscodeRttStats: %s, %d, %f, %d, %d", boot_id.c_str(), maximum_rtt, mean_rtt, num_requests, codec_type); ::metrics::structured::events::bluetooth::BluetoothMmcTranscodeRtt() .SetBootId(boot_id) .SetMaximumRtt(maximum_rtt) .SetMeanRtt(mean_rtt) .SetNumRequests(num_requests) .SetCodecType(codec_type) .Record(); } void LogMetricReadRssiResult( const Address& address, uint16_t handle, uint32_t cmd_status, int8_t rssi) {} Loading
system/gd/os/host/metrics.cc +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ void LogMetricHfpPacketLossStats( const Address& address, int num_decoded_frames, double packet_loss_ratio, uint16_t codec_type) { } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) {} void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t rssi) {} void LogMetricReadFailedContactCounterResult( Loading
system/gd/os/linux/metrics.cc +3 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,9 @@ void LogMetricHfpPacketLossStats( const Address& address, int num_decoded_frames, double packet_loss_ratio, uint16_t codec_type) { } void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type) {} void LogMetricBluetoothHalCrashReason( const Address& address, uint32_t error_code, uint32_t vendor_error_code) {} Loading
system/gd/os/metrics.h +11 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,17 @@ void LogMetricHfpPacketLossStats( double packet_loss_ratio, uint16_t codec_id); /** * Log Mmc transcode round-trip time statistics * * @param maximum_rtt maximum round-trip time in this session * @param mean_rtt the average of round-trip time in this session * @param num_requests the number of transcoding requests in the session * @param codec_type codec type used in this session */ void LogMetricMmcTranscodeRttStats( int maximum_rtt, double mean_rtt, int num_requests, int codec_type); /** * Log read RSSI result * Loading
system/main/shim/metrics_api.cc +6 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,12 @@ void LogMetricHfpPacketLossStats(const RawAddress& raw_address, packet_loss_ratio, codec_type); } void LogMetricMmcTranscodeRttStats(int maximum_rtt, double mean_rtt, int num_requests, int codec_type) { bluetooth::os::LogMetricMmcTranscodeRttStats(maximum_rtt, mean_rtt, num_requests, codec_type); } void LogMetricReadRssiResult(const RawAddress& raw_address, uint16_t handle, uint32_t cmd_status, int8_t rssi) { Address address = bluetooth::ToGdAddress(raw_address); Loading