diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 7b3c7756dba0c9e8bb322214d620a24a7782e459..23cf8235c256c9c6135fb13731b671306b2a2b4b 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug.h @@ -152,12 +152,12 @@ HiDebug_ErrorCode OH_HiDebug_StopAppTraceCapture(); HiDebug_ErrorCode OH_HiDebug_GetGraphicsMemory(uint32_t *value); /** - * @brief Replace MallocDispatch table with developer customized memory functions. + * @brief Replace MallocDispatch table with developer-defined memory allocation functions. * - * @param dispatchTable Indicates pointer of custom dispatch table. + * @param dispatchTable A pointer to the MallocDispatch table. * @return Result code - * {@link HIDEBUG_SUCCESS} Set customized dispatch table success. - * {@link HIDEBUG_INVALID_ARGUMENT} Invalid argument, dispatchTable is null pointer + * {@link HIDEBUG_SUCCESS} The MallocDispatch table is successfully overriden. + * {@link HIDEBUG_INVALID_ARGUMENT} Invalid argument, dispatchTable is a null pointer. * @since 20 */ HiDebug_ErrorCode OH_HiDebug_SetMallocDispatchTable(struct HiDebug_MallocDispatch *dispatchTable); @@ -165,7 +165,7 @@ HiDebug_ErrorCode OH_HiDebug_SetMallocDispatchTable(struct HiDebug_MallocDispatc /** * @brief Obtain current MallocDispatch table. * - * @return The default dispatch table of malloc function. + * @return Returns a pointer to MallocDispatch table on success, or NULL on failure. * @since 20 */ diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h index 4779148f80fd369485be094b97f5d2438e6e4f17..73c566a35f55d60913694822a70b77f8094696ea 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h @@ -182,7 +182,7 @@ typedef enum HiDebug_TraceFlag { } HiDebug_TraceFlag; /** - * @brief Defines structure type of malloc dispatch table. + * @brief Defines structure type for MallocDispatch table. * * @since 20 */