openharmony 鸿蒙 capi-hidebug-type-h

2026-08-25 浏览 (1)

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

Nametypedef KeywordDescription
HiDebug_ThreadCpuUsageHiDebug_ThreadCpuUsageDefines the CPU usage of all threads in an application.
HiDebug_SystemMemInfoHiDebug_SystemMemInfoDefines the system memory information.
HiDebug_NativeMemInfoHiDebug_NativeMemInfoDefines the local memory information of an application process.
HiDebug_MemoryLimitHiDebug_MemoryLimitDefines the memory limit of an application process.
HiDebug_JsStackFrameHiDebug_JsStackFrameDefines the JS stack frame content.
HiDebug_NativeStackFrameHiDebug_NativeStackFrameDefines the native stack frame content.
HiDebug_StackFrameHiDebug_StackFrameDefines the stack frame content.
HiDebug_MallocDispatchHiDebug_MallocDispatchDefines the struct types of the replaceable/restorable HiDebug_MallocDispatch table of the application process.
HiDebug_GraphicsMemorySummaryHiDebug_GraphicsMemorySummaryDefines the application graphics memory usage details.
HiDebug_ProcessSamplerConfigHiDebug_ProcessSamplerConfigDefines the sampling configuration.
HiDebug_Backtrace_Object__*HiDebug_Backtrace_ObjectDefines the object used for stack backtracing and stack parsing.
HiDebug_ThreadCpuUsage*HiDebug_ThreadCpuUsagePtrDefines the pointer to HiDebug_ThreadCpuUsage.

Enums

Nametypedef KeywordDescription
HiDebug_ErrorCodeHiDebug_ErrorCodeEnumerates the error codes used in the HiDebug module.
HiDebug_TraceFlagHiDebug_TraceFlagEnumerates the thread types for trace collection.
HiDebug_StackFrameTypeHiDebug_StackFrameTypeEnumerates the stack frame types.
HiDebug_CrashObjTypeHiDebug_CrashObjTypeEnumerates the data types of debugging information.

Macros

NameDescription
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 ItemDescription
HIDEBUG_SUCCESS = 0Operation successful.
HIDEBUG_INVALID_ARGUMENT = 401Invalid parameter. Possible causes: 1. The parameter value is incorrect. 2. The parameter type is incorrect.
HIDEBUG_TRACE_CAPTURED_ALREADY = 11400102Repeated collection.
HIDEBUG_NO_PERMISSION = 11400103No file write permission.
HIDEBUG_TRACE_ABNORMAL = 11400104Internal system error.
HIDEBUG_NO_TRACE_RUNNING = 11400105No trace task is running.
HIDEBUG_INVALID_SYMBOLIC_PC_ADDRESS = 11400200PC address passed to the symbol parsing function is invalid.
Since: 20
HIDEBUG_NOT_SUPPORTED = 11400300Current device is not supported.
Since: 22
HIDEBUG_UNDER_SAMPLING = 11400301Current process is being sampled.
Since: 22
HIDEBUG_RESOURCE_UNAVAILABLE = 11400302Sampling resources are unavailable.
Since: 22

HiDebug_TraceFlag

enum HiDebug_TraceFlag

Description

Enumerates the thread types for trace collection.

Since: 12

Enum ItemDescription
HIDEBUG_TRACE_FLAG_MAIN_THREAD = 1Only the main thread of the current application.
HIDEBUG_TRACE_FLAG_ALL_THREADS = 2All threads of the application.

HiDebug_StackFrameType

enum HiDebug_StackFrameType

Description

Enumerates the stack frame types.

Since: 20

Enum ItemDescription
HIDEBUG_STACK_FRAME_TYPE_JS = 1JS stack frame.
HIDEBUG_STACK_FRAME_TYPE_NATIVE = 2Native stack frame.

HiDebug_CrashObjType

enum HiDebug_CrashObjType

Description

Enumerates the data types of debugging information.

Since: 23

Enum ItemDescription
HIDEBUG_CRASHOBJ_STRING = 0String.
HIDEBUG_CRASHOBJ_MEMORY_64B = 164-byte memory block.
HIDEBUG_CRASHOBJ_MEMORY_256B = 2256-byte memory block.
HIDEBUG_CRASHOBJ_MEMORY_1024B = 31024-byte memory block.
HIDEBUG_CRASHOBJ_MEMORY_2048B = 42048-byte memory block.
HIDEBUG_CRASHOBJ_MEMORY_4096B = 54096-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 鸿蒙 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/kss8WBPA