harmony 鸿蒙hiappevent_event.h
hiappevent_event.h
Overview
Defines the names of all predefined events.
In addition to custom events associated with specific applications, you can use predefined events for logging.
Example:
ParamList list = OH_HiAppEvent_CreateParamList();
OH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123);
int res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list);
OH_HiAppEvent_DestroyParamList(list);
File to include:
Library: libhiappevent_ndk.z.so
System capability: SystemCapability.HiviewDFX.HiAppEvent
Since: 8
Related module: HiAppEvent
Summary
Macros
Name | Description |
---|---|
EVENT_USER_LOGIN “hiappevent.user_login” | User login event. |
EVENT_USER_LOGOUT “hiappevent.user_logout” | User logout event. |
EVENT_DISTRIBUTED_SERVICE_START “hiappevent.distributed_service_start” | Distributed service event. |
EVENT_APP_CRASH “APP_CRASH” | Application crash event. |
EVENT_APP_FREEZE “APP_FREEZE” | Application freeze event. |
EVENT_APP_LAUNCH “APP_LAUNCH” | Application loading event. |
EVENT_SCROLL_JANK “SCROLL_JANK” | Event indicating application freeze during swiping. |
EVENT_CPU_USAGE_HIGH “CPU_USAGE_HIGH” | Event indicating high CPU usage of an application. |
EVENT_BATTERY_USAGE “BATTERY_USAGE” | Application power usage event. |
EVENT_RESOURCE_OVERLIMIT “RESOURCE_OVERLIMIT” | Application resource threshold-crossing event. |
EVENT_ADDRESS_SANITIZER “ADDRESS_SANITIZER” | Address sanitizer event. |
EVENT_MAIN_THREAD_JANK “MAIN_THREAD_JANK” | Main thread jank event. |
EVENT_APP_HICOLLIE “APP_HICOLLIE” | Task execution timeout event. |
DOMAIN_OS “OS” | OS scope. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Performance Analysis Kit
harmony 鸿蒙Performance Analysis Kit
harmony 鸿蒙HiAppEvent_AppEventGroup
harmony 鸿蒙HiAppEvent_AppEventInfo
harmony 鸿蒙HiCollie_DetectionParam
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦