hiappevent_param.h
Overview
Defines the names of all predefined event parameters. In addition to custom events associated with specific applications, you can use predefined events for logging.
File to include: <hiappevent/hiappevent_param.h>
Library: libhiappevent_ndk.z.so
System capability: SystemCapability.HiviewDFX.HiAppEvent
Since: 8
Related module: HiAppEvent
Summary
Macros
| Name | Description |
|---|---|
| PARAM_USER_ID "user_id" | User ID. Since: 8 |
| PARAM_DISTRIBUTED_SERVICE_NAME "ds_name" | Distributed service name. Since: 8 |
| PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID "ds_instance_id" | Distributed service instance ID. Since: 8 |
| MAIN_THREAD_JANK_PARAM_LOG_TYPE "log_type" | Type of the log collected by the main thread jank event detection. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| MAIN_THREAD_JANK_PARAM_SAMPLE_INTERVAL "sample_interval" | Sampling interval of the main thread jank event detection. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| MAIN_THREAD_JANK_PARAM_IGNORE_STARTUP_TIME "ignore_startup_time" | Main thread jank event detection time ignored during application startup. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| MAIN_THREAD_JANK_PARAM_SAMPLE_COUNT "sample_count" | Number of stack samplings of the main thread timeout detection. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| MAIN_THREAD_JANK_PARAM_REPORT_TIMES_PER_APP "report_times_per_app" | Number of sampling reporting times of the main thread jank event detection within a single lifecycle of an application PID, which can only be set once in a lifecycle. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| MAIN_THREAD_JANK_PARAM_AUTO_STOP_SAMPLING "auto_stop_sampling" | Whether to stop sampling the main thread stack when the main thread jank event ends. This macro is used for MAIN_THREAD_JANK_V2 events. Since: 22 |
| OH_APP_CRASH_PARAM_EXTEND_PC_LR_PRINTING "extend_pc_lr_printing" | Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to print the memory contents of the extended byte ranges of the PC and LR. Since: 24 |
| OH_APP_CRASH_PARAM_LOG_FILE_CUTOFF_SZ_BYTES "log_file_cutoff_sz_bytes" | Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, truncate CPP_CRASH logs based on the configured parameter value. Since: 24 |
| OH_APP_CRASH_PARAM_SIMPLIFY_VMA_PRINTING "simplify_vma_printing" | Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to print only the VMA mapping information of the address in the crash log to reduce the size of the CPP_CRASH log file. Since: 24 |
| OH_APP_CRASH_PARAM_MERGE_CPPCRASH_APP_LOG "merge_cppcrash_app_log" | Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to combine the logs of the specified file in the application sandbox in the CPP_CRASH scenario. Since: 24 |
Macro Description
PARAM_USER_ID
#define PARAM_USER_ID "user_id"
Description
User ID.
Since: 8
PARAM_DISTRIBUTED_SERVICE_NAME
#define PARAM_DISTRIBUTED_SERVICE_NAME "ds_name"
Description
Distributed service name.
Since: 8
PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID
#define PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID "ds_instance_id"
Description
Distributed service instance ID.
Since: 8
MAIN_THREAD_JANK_PARAM_LOG_TYPE
#define MAIN_THREAD_JANK_PARAM_LOG_TYPE "log_type"
Description
Type of the log collected by the main thread jank event detection. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
MAIN_THREAD_JANK_PARAM_SAMPLE_INTERVAL
#define MAIN_THREAD_JANK_PARAM_SAMPLE_INTERVAL "sample_interval"
Description
Sampling interval of the main thread jank event detection. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
MAIN_THREAD_JANK_PARAM_IGNORE_STARTUP_TIME
#define MAIN_THREAD_JANK_PARAM_IGNORE_STARTUP_TIME "ignore_startup_time"
Description
Main thread jank event detection time ignored during application startup. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
MAIN_THREAD_JANK_PARAM_SAMPLE_COUNT
#define MAIN_THREAD_JANK_PARAM_SAMPLE_COUNT "sample_count"
Description
Number of stack samplings of the main thread timeout detection. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
MAIN_THREAD_JANK_PARAM_REPORT_TIMES_PER_APP
#define MAIN_THREAD_JANK_PARAM_REPORT_TIMES_PER_APP "report_times_per_app"
Description
Number of sampling reporting times of the main thread jank event detection within a single lifecycle of an application PID, which can only be set once in a lifecycle. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
MAIN_THREAD_JANK_PARAM_AUTO_STOP_SAMPLING
#define MAIN_THREAD_JANK_PARAM_AUTO_STOP_SAMPLING "auto_stop_sampling"
Description
Whether to stop sampling the main thread stack. This macro is used for MAIN_THREAD_JANK_V2 events.
Since: 22
OH_APP_CRASH_PARAM_EXTEND_PC_LR_PRINTING
#define OH_APP_CRASH_PARAM_EXTEND_PC_LR_PRINTING "extend_pc_lr_printing"
Description
Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to print the memory contents of the extended byte ranges of the PC and LR.
Since: 24
OH_APP_CRASH_PARAM_LOG_FILE_CUTOFF_SZ_BYTES
#define OH_APP_CRASH_PARAM_LOG_FILE_CUTOFF_SZ_BYTES "log_file_cutoff_sz_bytes"
Description
Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, truncate CPP_CRASH logs based on the configured parameter value.
Since: 24
OH_APP_CRASH_PARAM_SIMPLIFY_VMA_PRINTING
#define OH_APP_CRASH_PARAM_SIMPLIFY_VMA_PRINTING "simplify_vma_printing"
Description
Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to print only the VMA mapping information of the address in the crash log to reduce the size of the CPP_CRASH log file.
Since: 24
OH_APP_CRASH_PARAM_MERGE_CPPCRASH_APP_LOG
#define OH_APP_CRASH_PARAM_MERGE_CPPCRASH_APP_LOG "merge_cppcrash_app_log"
Description
Used to set the log specifications of the CPP_CRASH type in the APP_CRASH event, that is, whether to combine the logs of the specified file in the application sandbox in the CPP_CRASH scenario.
Since: 24
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-hiviewdfx-FaultLogExtensionAbility
openharmony 鸿蒙 errorcode-hisysevent-sys
openharmony 鸿蒙 capi-hitrace-hitraceid
openharmony 鸿蒙 capi-hidebug-hidebug-threadcpuusage
openharmony 鸿蒙 js-apis-loglibrary-sys
openharmony 鸿蒙 capi-hiappevent-h