系统:增加消息弹窗的功耗记录 1535/2 1535/head
authorCaisking <3449750381@qq.com>
Thu, 19 Dec 2024 08:38:00 +0000 (16:38 +0800)
committerCaisking <3449750381@qq.com>
Thu, 19 Dec 2024 08:38:00 +0000 (16:38 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp
code/sdk/drivers/peripheral/utils/custom_save_runtime.h
tools/log_parser/runtimeanalysis.py

index 1830424..0ed4c27 100644 (file)
@@ -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);
     }
 }
 
index 0325c79..37a3712 100644 (file)
@@ -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);
index 0cfd364..8478d42 100644 (file)
@@ -50,6 +50,7 @@ str_bin_list = [
     ['0504',"被动检测心率结束"],\r
     ['0701',"主动检测血氧"],\r
     ['0702',"主动检测血氧结束"],\r
+    ['1201',"消息弹窗显示"]\r
       \r
 ]  \r
 \r