openharmony 鸿蒙 capi-hiappevent-event-h

2026-08-25 浏览 (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.

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.
Since: 8
EVENT_USER_LOGOUT "hiappevent.user_logout"User logout event.
Since: 8
EVENT_DISTRIBUTED_SERVICE_START "hiappevent.distributed_service_start"Distributed service event.
Since: 8
EVENT_APP_CRASH "APP_CRASH"Crash event.
Since: 12
EVENT_APP_FREEZE "APP_FREEZE"Application freeze event.
Since: 12
EVENT_APP_LAUNCH "APP_LAUNCH"Time-consuming launch event.
Since: 12
EVENT_SCROLL_JANK "SCROLL_JANK"Scrolling frame loss event.
Since: 12
EVENT_CPU_USAGE_HIGH "CPU_USAGE_HIGH"High CPU usage event.
Since: 12
EVENT_BATTERY_USAGE "BATTERY_USAGE"Battery usage statistics event.
Since: 12
EVENT_RESOURCE_OVERLIMIT "RESOURCE_OVERLIMIT"Resource leak event.
Since: 12
EVENT_ADDRESS_SANITIZER "ADDRESS_SANITIZER"Address sanitizer event.
Since: 12
EVENT_MAIN_THREAD_JANK "MAIN_THREAD_JANK"Main thread jank event.
Since: 12
EVENT_APP_HICOLLIE "APP_HICOLLIE"Task execution timeout event.
Since: 18
EVENT_APP_KILLED "APP_KILLED"Application killed event.
Since: 20
EVENT_AUDIO_JANK_FRAME "AUDIO_JANK_FRAME"Audio jank event.
Since: 21
DOMAIN_OS "OS"OS scope.
Since: 12
EVENT_MAIN_THREAD_JANK_V2 "MAIN_THREAD_JANK_V2"Sets the main thread jank event configuration policy.
Since: 22

Macro Description

EVENT_USER_LOGIN

#define EVENT_USER_LOGIN "hiappevent.user_login"

Description

User login event.

Since: 8

EVENT_USER_LOGOUT

#define EVENT_USER_LOGOUT "hiappevent.user_logout"

Description

User logout event.

Since: 8

EVENT_DISTRIBUTED_SERVICE_START

#define EVENT_DISTRIBUTED_SERVICE_START "hiappevent.distributed_service_start"

Description

Distributed service event.

Since: 8

EVENT_APP_CRASH

#define EVENT_APP_CRASH "APP_CRASH"

Description

Crash event.

Since: 12

EVENT_APP_FREEZE

#define EVENT_APP_FREEZE "APP_FREEZE"

Description

Application freeze event.

Since: 12

EVENT_APP_LAUNCH

#define EVENT_APP_LAUNCH "APP_LAUNCH"

Description

Time-consuming launch event.

Since: 12

EVENT_SCROLL_JANK

#define EVENT_SCROLL_JANK "SCROLL_JANK"

Description

Scrolling frame loss event.

Since: 12

EVENT_CPU_USAGE_HIGH

#define EVENT_CPU_USAGE_HIGH "CPU_USAGE_HIGH"

Description

High CPU usage event.

Since: 12

EVENT_BATTERY_USAGE

#define EVENT_BATTERY_USAGE "BATTERY_USAGE"

Description

Battery usage statistics event.

Since: 12

EVENT_RESOURCE_OVERLIMIT

#define EVENT_RESOURCE_OVERLIMIT "RESOURCE_OVERLIMIT"

Description

Resource leak event.

Since: 12

EVENT_ADDRESS_SANITIZER

#define EVENT_ADDRESS_SANITIZER "ADDRESS_SANITIZER"

Description

Address sanitizer event.

Since: 12

EVENT_MAIN_THREAD_JANK

#define EVENT_MAIN_THREAD_JANK "MAIN_THREAD_JANK"

Description

Main thread jank event.

Since: 12

EVENT_APP_HICOLLIE

#define EVENT_APP_HICOLLIE "APP_HICOLLIE"

Description

Task execution timeout event.

Since: 18

EVENT_APP_KILLED

#define EVENT_APP_KILLED "APP_KILLED"

Description

Application killed event.

Since: 20

EVENT_AUDIO_JANK_FRAME

#define EVENT_AUDIO_JANK_FRAME "AUDIO_JANK_FRAME"

Description

Audio jank event.

Since: 21

DOMAIN_OS

#define DOMAIN_OS "OS"

Description

OS scope.

Since: 12

EVENT_MAIN_THREAD_JANK_V2

#define EVENT_MAIN_THREAD_JANK_V2 "MAIN_THREAD_JANK_V2"

Description

Sets the main thread jank event configuration policy.

Since: 22

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-hiviewdfx-FaultLogExtensionAbility

openharmony 鸿蒙 capi-log-h

openharmony 鸿蒙 errorcode-hisysevent-sys

openharmony 鸿蒙 capi-hitrace-hitraceid

openharmony 鸿蒙 capi-hidebug-hidebug-threadcpuusage

openharmony 鸿蒙 js-apis-loglibrary-sys

openharmony 鸿蒙 capi-hiappevent-h

openharmony 鸿蒙 capi-hidebug-hidebug-jsstackframe

openharmony 鸿蒙 capi-hitrace

openharmony 鸿蒙 capi-hiappevent-param-h

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