From 7028cfbca5b6ab3686358dc55eaf17c3354188bf Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Tue, 10 Jun 2025 02:41:44 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao --- hiviewdfx/hidebug/include/hidebug/hidebug.h | 10 +++++----- hiviewdfx/hidebug/include/hidebug/hidebug_type.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 7b3c7756d..23cf8235c 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 4779148f8..73c566a35 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 */ -- Gitee