diff --git a/hiviewdfx/hidebug/include/hidebug/hidebug.h b/hiviewdfx/hidebug/include/hidebug/hidebug.h index 1485f0b044c7a5e24823664d2be9e64d656d993f..c43312ad51783d292918c5f8bcc8cc9fefe2474c 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 cb57c2a2759ee5122f46305059bd570ba0c9283d..1c442c4ad1aebec2e4f53c7c7838b97be90fa937 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. *