From eda97d7309c1cb44fa5dce7ddf75df88766fc757 Mon Sep 17 00:00:00 2001 From: "dongbosi@huawei.com" Date: Fri, 1 Mar 2024 14:33:45 +0800 Subject: [PATCH] fix the type of memorylimit and the param of startAppTraceCapture Signed-off-by: dongbosi@huawei.com --- hiviewdfx/hidebug/include/hidebug/hidebug.h | 7 ++++--- hiviewdfx/hidebug/include/hidebug/hidebug_type.h | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 1485f0b04..c43312ad5 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug.h @@ -102,15 +102,16 @@ void OH_HiDebug_GetAppMemoryLimit(HiDebug_MemoryLimit *memoryLimit); /** * @brief Start capture application trace. * - * @param fileName Output trace file name * @param flag Trace flag * @param tags Tag of trace * @param limitSize Max size of trace file, in bytes, the max is 500MB. + * @param fileName Output trace file name buffer + * @param length Output trace file name buffer length * @return Returns {@code HIDEBUG_SUCCESS} if successful. See {@link HiDebug_ErrorCode} * @since 12 */ -HiDebug_ErrorCode OH_HiDebug_StartAppTraceCapture(const char* fileName, HiDebug_TraceFlag flag, - uint64_t tags, uint32_t limitSize); +HiDebug_ErrorCode OH_HiDebug_StartAppTraceCapture(HiDebug_TraceFlag flag, + uint64_t tags, uint32_t limitSize, char* fileName, uint32_t length); /** * @brief Stop capture application trace. diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h index cb57c2a27..1c442c4ad 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h @@ -152,11 +152,11 @@ typedef struct HiDebug_MemoryLimit { /** * The limit of the application process's resident set, in kibibytes */ - uint32_t rssLimit; + uint64_t rssLimit; /** * The limit of the application process's virtual memory, in kibibytes */ - uint32_t vssLimit; + uint64_t vssLimit; } HiDebug_MemoryLimit; /** @@ -265,11 +265,11 @@ typedef enum HiDebug_TraceFlag { */ #define HIDEBUG_TRACE_TAG_GRAPHICS (1ULL << 38) /** - * @brief ACE development framework tag. + * @brief ARKUI development framework tag. * * @since 12 */ -#define HIDEBUG_TRACE_TAG_ACE (1ULL << 39) +#define HIDEBUG_TRACE_TAG_ARKUI (1ULL << 39) /** * @brief Notification module tag. * -- Gitee