From: Caisking <3449750381@qq.com> Date: Thu, 19 Dec 2024 08:38:00 +0000 (+0800) Subject: 系统:增加消息弹窗的功耗记录 X-Git-Tag: v1.3.113-repair_tp~133 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=3388b5f98359a796469023cfdef7d2db5df540a9;p=mirrors%2FFD230.git 系统:增加消息弹窗的功耗记录 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index 18304240b..0ed4c27e8 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -1015,6 +1015,8 @@ void MsgCenterNotifyMessageProc(const Topic topic, Request* req) // nullptr, 0); OHOS::NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE); OHOS::NotificationManager::GetInstance()->ShowNotify(OHOS::CreateMessageView, TOPIC_EVENT_MESSAGENOTE, true); + //进行消息显示记录 + uapi_save_runtime_log(RUNTIME_LOG_MSG_SHOW); } } diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h index 0325c7942..37a371232 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h @@ -182,6 +182,11 @@ typedef enum { RUNTIME_LOG_RECORD_START_AI, // 0x1103 AI录音开始 RUNTIME_LOG_RECORD_STOP_AI, // 0x1104 AI录音停止 + //消息 + RUNTIME_LOG_MSG_MIN = 0x1200, + //消息显示 + RUNTIME_LOG_MSG_SHOW, + } runtime_log_cmd_Id; errcode_t uapi_save_runtime_log(uint16_t cmd); diff --git a/tools/log_parser/runtimeanalysis.py b/tools/log_parser/runtimeanalysis.py index 0cfd364b8..8478d425e 100644 --- a/tools/log_parser/runtimeanalysis.py +++ b/tools/log_parser/runtimeanalysis.py @@ -50,6 +50,7 @@ str_bin_list = [ ['0504',"被动检测心率结束"], ['0701',"主动检测血氧"], ['0702',"主动检测血氧结束"], + ['1201',"消息弹窗显示"] ]