diff --git a/displaymanager.yaml b/displaymanager.yaml index 241c01249f24ee230119afc089f16bbd3d16eeaa..639c9d5eadeaacf08f3c7c21787797396085f5c9 100644 --- a/displaymanager.yaml +++ b/displaymanager.yaml @@ -34,4 +34,5 @@ AMBIENT_LIGHT: DMS_WAIT_LOCKSCREEN_TIMEOUT: __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dms wait lockscreen timeout information} - TYPE: {type: INT32, desc: screen on or off type} \ No newline at end of file + TYPE: {type: INT32, desc: screen on or off type} + TIME: {type: INT32, desc: interface time consuming} \ No newline at end of file diff --git a/state_manager/service/native/src/screen_action.cpp b/state_manager/service/native/src/screen_action.cpp index 53c677868d31b633ec2d7bee6d2084ebf2da65be..f65ffe1133b7127dc2570a77ae213b528d7bf3de 100644 --- a/state_manager/service/native/src/screen_action.cpp +++ b/state_manager/service/native/src/screen_action.cpp @@ -95,11 +95,13 @@ void ScreenAction::WriteHiSysEvent(DisplayState state, int32_t beginTimeMs) if ((endTimeMs - beginTimeMs > DMS_WAIT_LOCKSCREENON_TIMEOUT) && state == DisplayState::DISPLAY_ON) { DISPLAY_HILOGI(FEAT_STATE, "dms wait lockscreenon timeout=%{public}d", (endTimeMs - beginTimeMs)); HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::DISPLAY, "DMS_WAIT_LOCKSCREEN_TIMEOUT", - HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "TYPE", DMS_WAIT_LOCKSCREENON_TYPE); + HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "TYPE", DMS_WAIT_LOCKSCREENON_TYPE, + "TIME", (endTimeMs - beginTimeMs)); } else if ((endTimeMs - beginTimeMs > DMS_WAIT_LOCKSCREENOFF_TIMEOUT) && state == DisplayState::DISPLAY_OFF) { DISPLAY_HILOGI(FEAT_STATE, "dms wait lockscreenoff timeout=%{public}d", (endTimeMs - beginTimeMs)); HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::DISPLAY, "DMS_WAIT_LOCKSCREEN_TIMEOUT", - HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "TYPE", DMS_WAIT_LOCKSCREENOFF_TYPE); + HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "TYPE", DMS_WAIT_LOCKSCREENOFF_TYPE, + "TIME", (endTimeMs - beginTimeMs)); } }