harmony 鸿蒙hiappevent_event.h

2025-06-12 浏览 (1)

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: <hiappevent/hiappevent_event.h>

Library: libhiappevent_ndk.z.so

System capability: SystemCapability.HiviewDFX.HiAppEvent

Since: 8

Related module: HiAppEvent

Summary

Macros

NameDescription
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

harmony 鸿蒙HiAppEvent_AppEventGroup

harmony 鸿蒙HiAppEvent_AppEventInfo

harmony 鸿蒙HiCollie

harmony 鸿蒙HiCollie_DetectionParam

harmony 鸿蒙HiCollie_SetTimerParam

harmony 鸿蒙HiDebug

harmony 鸿蒙HiDebug_MemoryLimit

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/ZAmpdN