hidebug_type.h
Overview
Defines the structs of the HiDebug module.
File to include: <hidebug/hidebug_type.h>
Library: libohhidebug.so
System capability: SystemCapability.HiviewDFX.HiProfiler.HiDebug
Since: 12
Related module: HiDebug
Summary
Structs
| Name | typedef Keyword | Description |
|---|---|---|
| HiDebug_ThreadCpuUsage | HiDebug_ThreadCpuUsage | Defines the CPU usage of all threads in an application. |
| HiDebug_SystemMemInfo | HiDebug_SystemMemInfo | Defines the system memory information. |
| HiDebug_NativeMemInfo | HiDebug_NativeMemInfo | Defines the local memory information of an application process. |
| HiDebug_MemoryLimit | HiDebug_MemoryLimit | Defines the memory limit of an application process. |
| HiDebug_JsStackFrame | HiDebug_JsStackFrame | Defines the JS stack frame content. |
| HiDebug_NativeStackFrame | HiDebug_NativeStackFrame | Defines the native stack frame content. |
| HiDebug_StackFrame | HiDebug_StackFrame | Defines the stack frame content. |
| HiDebug_MallocDispatch | HiDebug_MallocDispatch | Defines the struct types of the replaceable/restorable HiDebug_MallocDispatch table of the application process. |
| HiDebug_GraphicsMemorySummary | HiDebug_GraphicsMemorySummary | Defines the application graphics memory usage details. |
| HiDebug_ProcessSamplerConfig | HiDebug_ProcessSamplerConfig | Defines the sampling configuration. |
| HiDebug_Backtrace_Object__* | HiDebug_Backtrace_Object | Defines the object used for stack backtracing and stack parsing. |
| HiDebug_ThreadCpuUsage* | HiDebug_ThreadCpuUsagePtr | Defines the pointer to HiDebug_ThreadCpuUsage. |
Enums
| Name | typedef Keyword | Description |
|---|---|---|
| HiDebug_ErrorCode | HiDebug_ErrorCode | Enumerates the error codes used in the HiDebug module. |
| HiDebug_TraceFlag | HiDebug_TraceFlag | Enumerates the thread types for trace collection. |
| HiDebug_StackFrameType | HiDebug_StackFrameType | Enumerates the stack frame types. |
| HiDebug_CrashObjType | HiDebug_CrashObjType | Enumerates the data types of debugging information. |
Macros
| Name | Description |
|---|---|
| HIDEBUG_TRACE_TAG_FFRT (1ULL << 13) | Indicates a function flow runtime (FFRT) task. Since: 12 |
| HIDEBUG_TRACE_TAG_COMMON_LIBRARY (1ULL << 16) | Indicates the common library subsystem. Since: 12 |
| HIDEBUG_TRACE_TAG_HDF (1ULL << 18) | Indicates the HDF subsystem. Since: 12 |
| HIDEBUG_TRACE_TAG_NET (1ULL << 23) | Indicates the Network. Since: 12 |
| HIDEBUG_TRACE_TAG_NWEB (1ULL << 24) | Indicates the NWeb. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_AUDIO (1ULL << 27) | Indicates the distributed audio. Since: 12 |
| HIDEBUG_TRACE_TAG_FILE_MANAGEMENT (1ULL << 29) | Indicates the file management. Since: 12 |
| HIDEBUG_TRACE_TAG_OHOS (1ULL << 30) | Indicates the OpenHarmony OS. Since: 12 |
| HIDEBUG_TRACE_TAG_ABILITY_MANAGER (1ULL << 31) | Indicates the Ability Manager. Since: 12 |
| HIDEBUG_TRACE_TAG_CAMERA (1ULL << 32) | Indicates the camera module. Since: 12 |
| HIDEBUG_TRACE_TAG_MEDIA (1ULL << 33) | Indicates the media module. Since: 12 |
| HIDEBUG_TRACE_TAG_IMAGE (1ULL << 34) | Indicates the image module. Since: 12 |
| HIDEBUG_TRACE_TAG_AUDIO (1ULL << 35) | Indicates the audio module. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_DATA (1ULL << 36) | Indicates the distributed data management. Since: 12 |
| HIDEBUG_TRACE_TAG_GRAPHICS (1ULL << 38) | Indicates the graphics module. Since: 12 |
| HIDEBUG_TRACE_TAG_ARKUI (1ULL << 39) | Indicates the ArkUI development framework. Since: 12 |
| HIDEBUG_TRACE_TAG_NOTIFICATION (1ULL << 40) | Indicates the notification module. Since: 12 |
| HIDEBUG_TRACE_TAG_MISC (1ULL << 41) | Indicates the MISC module. Since: 12 |
| HIDEBUG_TRACE_TAG_MULTIMODAL_INPUT (1ULL << 42) | Indicates the multimodal input module. Since: 12 |
| HIDEBUG_TRACE_TAG_RPC (1ULL << 46) | Indicates a remote procedure call (RPC). Since: 12 |
| HIDEBUG_TRACE_TAG_ARK (1ULL << 47) | Indicates a JavaScript virtual machine (JSVM). Since: 12 |
| HIDEBUG_TRACE_TAG_WINDOW_MANAGER (1ULL << 48) | Indicates the window manager. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_SCREEN (1ULL << 50) | Indicates the distributed screen. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_CAMERA (1ULL << 51) | Indicates the distributed camera. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_FRAMEWORK (1ULL << 52) | Indicates the distributed hardware framework. Since: 12 |
| HIDEBUG_TRACE_TAG_GLOBAL_RESOURCE_MANAGER (1ULL << 53) | Indicates the global resource management. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_DEVICE_MANAGER (1ULL << 54) | Indicates the distributed hardware device management. Since: 12 |
| HIDEBUG_TRACE_TAG_SAMGR (1ULL << 55) | Indicates the Samgr (SA). Since: 12 |
| HIDEBUG_TRACE_TAG_POWER_MANAGER (1ULL << 56) | Indicates the power manager. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_SCHEDULER (1ULL << 57) | Indicates the distributed scheduler. Since: 12 |
| HIDEBUG_TRACE_TAG_DISTRIBUTED_INPUT (1ULL << 59) | Indicates the distributed input. Since: 12 |
| HIDEBUG_TRACE_TAG_BLUETOOTH (1ULL << 60) | Indicates the Bluetooth. Since: 12 |
Enum Description
HiDebug_ErrorCode
enum HiDebug_ErrorCode
Description
Enumerates the error codes used in the HiDebug module.
Since: 12
| Enum Item | Description |
|---|---|
| HIDEBUG_SUCCESS = 0 | Operation successful. |
| HIDEBUG_INVALID_ARGUMENT = 401 | Invalid parameter. Possible causes: 1. The parameter value is incorrect. 2. The parameter type is incorrect. |
| HIDEBUG_TRACE_CAPTURED_ALREADY = 11400102 | Repeated collection. |
| HIDEBUG_NO_PERMISSION = 11400103 | No file write permission. |
| HIDEBUG_TRACE_ABNORMAL = 11400104 | Internal system error. |
| HIDEBUG_NO_TRACE_RUNNING = 11400105 | No trace task is running. |
| HIDEBUG_INVALID_SYMBOLIC_PC_ADDRESS = 11400200 | PC address passed to the symbol parsing function is invalid. Since: 20 |
| HIDEBUG_NOT_SUPPORTED = 11400300 | Current device is not supported. Since: 22 |
| HIDEBUG_UNDER_SAMPLING = 11400301 | Current process is being sampled. Since: 22 |
| HIDEBUG_RESOURCE_UNAVAILABLE = 11400302 | Sampling resources are unavailable. Since: 22 |
HiDebug_TraceFlag
enum HiDebug_TraceFlag
Description
Enumerates the thread types for trace collection.
Since: 12
| Enum Item | Description |
|---|---|
| HIDEBUG_TRACE_FLAG_MAIN_THREAD = 1 | Only the main thread of the current application. |
| HIDEBUG_TRACE_FLAG_ALL_THREADS = 2 | All threads of the application. |
HiDebug_StackFrameType
enum HiDebug_StackFrameType
Description
Enumerates the stack frame types.
Since: 20
| Enum Item | Description |
|---|---|
| HIDEBUG_STACK_FRAME_TYPE_JS = 1 | JS stack frame. |
| HIDEBUG_STACK_FRAME_TYPE_NATIVE = 2 | Native stack frame. |
HiDebug_CrashObjType
enum HiDebug_CrashObjType
Description
Enumerates the data types of debugging information.
Since: 23
| Enum Item | Description |
|---|---|
| HIDEBUG_CRASHOBJ_STRING = 0 | String. |
| HIDEBUG_CRASHOBJ_MEMORY_64B = 1 | 64-byte memory block. |
| HIDEBUG_CRASHOBJ_MEMORY_256B = 2 | 256-byte memory block. |
| HIDEBUG_CRASHOBJ_MEMORY_1024B = 3 | 1024-byte memory block. |
| HIDEBUG_CRASHOBJ_MEMORY_2048B = 4 | 2048-byte memory block. |
| HIDEBUG_CRASHOBJ_MEMORY_4096B = 5 | 4096-byte memory block. |
Macro Description
HIDEBUG_TRACE_TAG_FFRT
#define HIDEBUG_TRACE_TAG_FFRT (1ULL << 13)
Description
Indicates a function flow runtime (FFRT) task.
Since: 12
HIDEBUG_TRACE_TAG_COMMON_LIBRARY
#define HIDEBUG_TRACE_TAG_COMMON_LIBRARY (1ULL << 16)
Description
Indicates the common library subsystem.
Since: 12
HIDEBUG_TRACE_TAG_HDF
#define HIDEBUG_TRACE_TAG_HDF (1ULL << 18)
Description
Indicates the HDF subsystem.
Since: 12
HIDEBUG_TRACE_TAG_NET
#define HIDEBUG_TRACE_TAG_NET (1ULL << 23)
Description
Indicates the Network.
Since: 12
HIDEBUG_TRACE_TAG_NWEB
#define HIDEBUG_TRACE_TAG_NWEB (1ULL << 24)
Description
Indicates the NWeb.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_AUDIO
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_AUDIO (1ULL << 27)
Description
Indicates the distributed audio.
Since: 12
HIDEBUG_TRACE_TAG_FILE_MANAGEMENT
#define HIDEBUG_TRACE_TAG_FILE_MANAGEMENT (1ULL << 29)
Description
Indicates the file management.
Since: 12
HIDEBUG_TRACE_TAG_OHOS
#define HIDEBUG_TRACE_TAG_OHOS (1ULL << 30)
Description
Indicates the OpenHarmony OS.
Since: 12
HIDEBUG_TRACE_TAG_ABILITY_MANAGER
#define HIDEBUG_TRACE_TAG_ABILITY_MANAGER (1ULL << 31)
Description
Indicates the Ability Manager.
Since: 12
HIDEBUG_TRACE_TAG_CAMERA
#define HIDEBUG_TRACE_TAG_CAMERA (1ULL << 32)
Description
Indicates the camera module.
Since: 12
HIDEBUG_TRACE_TAG_MEDIA
#define HIDEBUG_TRACE_TAG_MEDIA (1ULL << 33)
Description
Indicates the media module.
Since: 12
HIDEBUG_TRACE_TAG_IMAGE
#define HIDEBUG_TRACE_TAG_IMAGE (1ULL << 34)
Description
Indicates the image module.
Since: 12
HIDEBUG_TRACE_TAG_AUDIO
#define HIDEBUG_TRACE_TAG_AUDIO (1ULL << 35)
Description
Indicates the audio module.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_DATA
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_DATA (1ULL << 36)
Description
Indicates the distributed data management.
Since: 12
HIDEBUG_TRACE_TAG_GRAPHICS
#define HIDEBUG_TRACE_TAG_GRAPHICS (1ULL << 38)
Description
Indicates the graphics module.
Since: 12
HIDEBUG_TRACE_TAG_ARKUI
#define HIDEBUG_TRACE_TAG_ARKUI (1ULL << 39)
Description
Indicates the ArkUI development framework.
Since: 12
HIDEBUG_TRACE_TAG_NOTIFICATION
#define HIDEBUG_TRACE_TAG_NOTIFICATION (1ULL << 40)
Description
Indicates the notification module.
Since: 12
HIDEBUG_TRACE_TAG_MISC
#define HIDEBUG_TRACE_TAG_MISC (1ULL << 41)
Description
Indicates the MISC module.
Since: 12
HIDEBUG_TRACE_TAG_MULTIMODAL_INPUT
#define HIDEBUG_TRACE_TAG_MULTIMODAL_INPUT (1ULL << 42)
Description
Indicates the multimodal input module.
Since: 12
HIDEBUG_TRACE_TAG_RPC
#define HIDEBUG_TRACE_TAG_RPC (1ULL << 46)
Description
Indicates a remote procedure call (RPC).
Since: 12
HIDEBUG_TRACE_TAG_ARK
#define HIDEBUG_TRACE_TAG_ARK (1ULL << 47)
Description
Indicates a JavaScript virtual machine (JSVM).
Since: 12
HIDEBUG_TRACE_TAG_WINDOW_MANAGER
#define HIDEBUG_TRACE_TAG_WINDOW_MANAGER (1ULL << 48)
Description
Indicates the window manager.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_SCREEN
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_SCREEN (1ULL << 50)
Description
Indicates the distributed screen.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_CAMERA
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_CAMERA (1ULL << 51)
Description
Indicates the distributed camera.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_FRAMEWORK
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_FRAMEWORK (1ULL << 52)
Description
Indicates the distributed hardware framework.
Since: 12
HIDEBUG_TRACE_TAG_GLOBAL_RESOURCE_MANAGER
#define HIDEBUG_TRACE_TAG_GLOBAL_RESOURCE_MANAGER (1ULL << 53)
Description
Indicates the global resource management.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_DEVICE_MANAGER
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_DEVICE_MANAGER (1ULL << 54)
Description
Indicates the distributed hardware device management.
Since: 12
HIDEBUG_TRACE_TAG_SAMGR
#define HIDEBUG_TRACE_TAG_SAMGR (1ULL << 55)
Description
Indicates the Samgr (SA).
Since: 12
HIDEBUG_TRACE_TAG_POWER_MANAGER
#define HIDEBUG_TRACE_TAG_POWER_MANAGER (1ULL << 56)
Description
Indicates the power manager.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_SCHEDULER
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_SCHEDULER (1ULL << 57)
Description
Indicates the distributed scheduler.
Since: 12
HIDEBUG_TRACE_TAG_DISTRIBUTED_INPUT
#define HIDEBUG_TRACE_TAG_DISTRIBUTED_INPUT (1ULL << 59)
Description
Indicates the distributed input.
Since: 12
HIDEBUG_TRACE_TAG_BLUETOOTH
#define HIDEBUG_TRACE_TAG_BLUETOOTH (1ULL << 60)
Description
Indicates the Bluetooth.
Since: 12
你可能感兴趣的鸿蒙文章
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