openharmony 鸿蒙 hiappevent-watcher-freeze-events

2025-06-12 浏览 (1)

Freeze Event Overview

HiAppEvent provides APIs for subscribing to freeze events.

The params parameter in the freeze event information is described as follows:

params

NameTypeDescription
timenumberEvent triggering time, in ms.
foregroundbooleanWhether the application is running in the foreground. The value true indicates that the application is in the foreground, and the value false indicates the opposite.
bundle_versionstringApplication version.
bundle_namestringApplication name.
process_namestringProcess name of the application.
pidnumberProcess ID of the application.
uidnumberUser ID of the application.
uuidstringError ID, which is generated based on fault information and uniquely identifies crash faults of the same type.
exceptionobjectException information. For details, see exception.
hilogstring[]Log information.
event_handlerstring[]Events not yet handled by the main thread.
event_handler_size_3sstringNumber of tasks in the task stack at 3s during the THREAD_BLOCK_6S event. This parameter is valid only in the THREAD_BLOCK_6S event.
event_handler_size_6sstringNumber of tasks in the task stack at 6s during the THREAD_BLOCK_6S event.
peer_binderstring[]Binder call information.
threadsobject[]Full thread call stack. For details, see thread.
memoryobjectMemory information. For details, see memory.
external_log12+string[]Path of the error log file. If the directory files exceed the threshold (for details, see log_over_limit), new log files may fail to be written. Therefore, delete the log files immediately after they are processed.
log_over_limit12+booleanWhether the size of generated fault log files and existing log files exceeds the upper limit (5 MB). The value true indicates that the upper limit is exceeded and logs fail to be written. The value false indicates that the upper limit is not exceeded.

exception

NameTypeDescription
namestringException type.
messagestringException cause.

thread

NameTypeDescription
thread_namestringThread name.
tidnumberThread ID.
framesobject[]Thread call stack. For details, see frame.

frame (native)

NameTypeDescription
symbolstringFunction name. When the device is heavily loaded and the call stack is obtained in low-overhead mode, the function name may be lost.
filestringFile name.
buildIdstringUnique file ID. When the device is heavily loaded and the call stack is obtained in low-overhead mode, the buildId information may be lost.
pcstringPC register address.
offsetnumberFunction offset.

frame (JS)

NameTypeDescription
filestringFile name.
packageNamestringPackage name of the module.
symbolstringFunction name.
columnnumberThe column where an exception occurs.
linenumberThe line where an exception occurs.

memory

NameTypeDescription
rssnumberSize of the memory allocated for a process, in KB.
vssnumberSize of the virtual memory applied by a process from the system, in KB.
pssnumberSize of the physical memory actually used by a process, in KB.
sys_free_memnumberSize of free memory, in KB.
sys_avail_memnumberSize of available memory, in KB.
sys_total_memnumberTotal memory size, in KB.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙Analyzing Application Freeze

harmony 鸿蒙Development of Application Recovery

harmony 鸿蒙Analyzing C++ Crash

harmony 鸿蒙Development of Error Manager

harmony 鸿蒙hdc

harmony 鸿蒙Event Reporting

harmony 鸿蒙Introduction to HiAppEvent

harmony 鸿蒙Subscribing to Address Sanitizer Events (ArkTS)

harmony 鸿蒙Subscribing to Address Sanitizer Events (C/C++)

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