harmony 鸿蒙hidebug_type.h

  • 2025-06-12
  • 浏览 (4)

hidebug_type.h

Overview

Defines the structs of the HiDebug module.

Library: libohhidebug.so

System capability: SystemCapability.HiviewDFX.HiProfiler.HiDebug

Since: 12

Related module: HiDebug

Summary

Structs

Name Description
struct  HiDebug_ThreadCpuUsage Defines the CPU usage of all threads in an application.
struct  HiDebug_SystemMemInfo Defines the system memory information.
struct  HiDebug_NativeMemInfo Defines the local memory information of an application process.
struct  HiDebug_MemoryLimit Defines the memory limit of an application process.

Macros

Name Description
HIDEBUG_TRACE_TAG_FFRT   (1ULL << 13) Indicates a function flow runtime (FFRT) task.
HIDEBUG_TRACE_TAG_COMMON_LIBRARY   (1ULL << 16) Indicates the common library subsystem.
HIDEBUG_TRACE_TAG_HDF   (1ULL << 18) Indicates the HDF subsystem.
HIDEBUG_TRACE_TAG_NET   (1ULL << 23) Indicates the Network.
HIDEBUG_TRACE_TAG_NWEB   (1ULL << 24) Indicates the NWeb.
HIDEBUG_TRACE_TAG_DISTRIBUTED_AUDIO   (1ULL << 27) Indicates the distributed audio.
HIDEBUG_TRACE_TAG_FILE_MANAGEMENT   (1ULL << 29) Indicates the file management.
HIDEBUG_TRACE_TAG_OHOS   (1ULL << 30) Indicates the OpenHarmony OS.
HIDEBUG_TRACE_TAG_ABILITY_MANAGER   (1ULL << 31) Indicates the Ability Manager.
HIDEBUG_TRACE_TAG_CAMERA   (1ULL << 32) Indicates the camera module.
HIDEBUG_TRACE_TAG_MEDIA   (1ULL << 33) Indicates the media module.
HIDEBUG_TRACE_TAG_IMAGE   (1ULL << 34) Indicates the image module.
HIDEBUG_TRACE_TAG_AUDIO   (1ULL << 35) Indicates the audio module.
HIDEBUG_TRACE_TAG_DISTRIBUTED_DATA   (1ULL << 36) Indicates the distributed data management.
HIDEBUG_TRACE_TAG_GRAPHICS   (1ULL << 38) Indicates the graphics module.
HIDEBUG_TRACE_TAG_ARKUI   (1ULL << 39) Indicates the ArkUI development framework.
HIDEBUG_TRACE_TAG_NOTIFICATION   (1ULL << 40) Indicates the notification module.
HIDEBUG_TRACE_TAG_MISC   (1ULL << 41) Indicates the MISC module.
HIDEBUG_TRACE_TAG_MULTIMODAL_INPUT   (1ULL << 42) Indicates the multimodal input module.
HIDEBUG_TRACE_TAG_RPC   (1ULL << 46) Indicates a remote procedure call (RPC).
HIDEBUG_TRACE_TAG_ARK   (1ULL << 47) Indicates a JavaScript virtual machine (JSVM).
HIDEBUG_TRACE_TAG_WINDOW_MANAGER   (1ULL << 48) Indicates the window manager.
HIDEBUG_TRACE_TAG_DISTRIBUTED_SCREEN   (1ULL << 50) Indicates the distributed screen.
HIDEBUG_TRACE_TAG_DISTRIBUTED_CAMERA   (1ULL << 51) Indicates the distributed camera.
HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_FRAMEWORK   (1ULL << 52) Indicates the distributed hardware framework.
HIDEBUG_TRACE_TAG_GLOBAL_RESOURCE_MANAGER   (1ULL << 53) Indicates the global resource management.
HIDEBUG_TRACE_TAG_DISTRIBUTED_HARDWARE_DEVICE_MANAGER   (1ULL << 54) Indicates the distributed hardware device management.
HIDEBUG_TRACE_TAG_SAMGR   (1ULL << 55) Indicates the Samgr (SA).
HIDEBUG_TRACE_TAG_POWER_MANAGER   (1ULL << 56) Indicates the power manager.
HIDEBUG_TRACE_TAG_DISTRIBUTED_SCHEDULER   (1ULL << 57) Indicates the distributed scheduler.
HIDEBUG_TRACE_TAG_DISTRIBUTED_INPUT   (1ULL << 59) Indicates the distributed input.
HIDEBUG_TRACE_TAG_BLUETOOTH   (1ULL << 60) Indicates the Bluetooth.

Types

Name Description
typedef enum HiDebug_ErrorCode HiDebug_ErrorCode Defines an enum for the error codes used in the HiDebug module.
typedef struct HiDebug_ThreadCpuUsage HiDebug_ThreadCpuUsage Defines a struct for the CPU usage of all threads of an application.
typedef HiDebug_ThreadCpuUsage * HiDebug_ThreadCpuUsagePtr Defines the pointer to HiDebug_ThreadCpuUsage.
typedef struct HiDebug_SystemMemInfo HiDebug_SystemMemInfo Defines a struct for the system memory information.
typedef struct HiDebug_NativeMemInfo HiDebug_NativeMemInfo Defines a struct for the local memory information of an application process.
typedef struct HiDebug_MemoryLimit HiDebug_MemoryLimit Defines a struct for the memory limit of an application process.
typedef enum HiDebug_TraceFlag HiDebug_TraceFlag Defines an enum for the thread types for trace collection.

Enums

Name Description
HiDebug_ErrorCode {
HIDEBUG_SUCCESS = 0,
HIDEBUG_INVALID_ARGUMENT = 401,
HIDEBUG_TRACE_CAPTURED_ALREADY = 11400102,
HIDEBUG_NO_PERMISSION = 11400103,
HIDEBUG_TRACE_ABNORMAL = 11400104,
HIDEBUG_NO_TRACE_RUNNING = 11400105
}
Enumerates the error codes used in the HiDebug module.
HiDebug_TraceFlag {
HIDEBUG_TRACE_FLAG_MAIN_THREAD = 1,
HIDEBUG_TRACE_FLAG_ALL_THREADS = 2
}
Enumerates the thread types for trace collection.

你可能感兴趣的鸿蒙文章

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

0  赞