From 2d7aedbb63a911c0f73f5715edbc888a24df5505 Mon Sep 17 00:00:00 2001 From: zhouhaifeng Date: Tue, 27 Feb 2024 16:32:43 +0800 Subject: [PATCH 1/3] fix start application trace capture of hidebug Signed-off-by: zhouhaifeng --- hiviewdfx/hidebug/include/hidebug/hidebug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 1485f0b04..973a4498e 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug.h @@ -102,15 +102,15 @@ 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 + * @param length Output trace file name 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, const char* fileName, uint32_t length); /** * @brief Stop capture application trace. -- Gitee From 1799c3804c5b720a259655768eb245bf528e7629 Mon Sep 17 00:00:00 2001 From: zhouhaifeng Date: Wed, 28 Feb 2024 09:22:50 +0800 Subject: [PATCH 2/3] remove const of hiview api Signed-off-by: zhouhaifeng --- hiviewdfx/hidebug/include/hidebug/hidebug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 973a4498e..4c10c4174 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug.h @@ -110,7 +110,7 @@ void OH_HiDebug_GetAppMemoryLimit(HiDebug_MemoryLimit *memoryLimit); * @return Returns {@code HIDEBUG_SUCCESS} if successful. See {@link HiDebug_ErrorCode} * @since 12 */ -HiDebug_ErrorCode OH_HiDebug_StartAppTraceCapture(HiDebug_TraceFlag flag, uint64_t tags, uint32_t limitSize, const char* fileName, uint32_t length); +HiDebug_ErrorCode OH_HiDebug_StartAppTraceCapture(HiDebug_TraceFlag flag, uint64_t tags, uint32_t limitSize, char* fileName, uint32_t length); /** * @brief Stop capture application trace. -- Gitee From a743b18c7baa252dd1fefdca03e55edc98e42a8b Mon Sep 17 00:00:00 2001 From: zhouhaifeng Date: Wed, 28 Feb 2024 16:28:26 +0800 Subject: [PATCH 3/3] change ACE to ARKUI of hidebug Signed-off-by: zhouhaifeng --- hiviewdfx/hidebug/include/hidebug/hidebug_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h index cb57c2a27..374b08220 100644 --- a/hiviewdfx/hidebug/include/hidebug/hidebug_type.h +++ b/hiviewdfx/hidebug/include/hidebug/hidebug_type.h @@ -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