From 19100b41af704585080138d4597cfc77d30e2f3b Mon Sep 17 00:00:00 2001 From: liujia178 Date: Tue, 24 Jun 2025 11:35:28 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=B7=BB=E5=8A=A0=20hidebug=20arkts?= =?UTF-8?q?1.2=20=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujia178 --- .../js-apis-hidebug.md | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis-performance-analysis-kit/js-apis-hidebug.md b/zh-cn/application-dev/reference/apis-performance-analysis-kit/js-apis-hidebug.md index b61d4b2af46..1fdce17bf7e 100644 --- a/zh-cn/application-dev/reference/apis-performance-analysis-kit/js-apis-hidebug.md +++ b/zh-cn/application-dev/reference/apis-performance-analysis-kit/js-apis-hidebug.md @@ -253,6 +253,8 @@ startJsCpuProfiling(filename : string) : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -290,6 +292,8 @@ stopJsCpuProfiling() : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **示例:** ```ts @@ -313,6 +317,8 @@ dumpJsHeapData(filename : string) : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -351,6 +357,8 @@ startProfiling(filename : string) : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -380,6 +388,8 @@ stopProfiling() : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **示例:** ```ts @@ -403,6 +413,8 @@ dumpHeapData(filename : string) : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -425,6 +437,8 @@ getAppVMMemoryInfo(): VMMemoryInfo **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **返回值:** | 类型 | 说明 | @@ -643,6 +657,8 @@ setAppResourceLimit(type: string, value: number, enableDebugLog: boolean) : void **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -734,6 +750,8 @@ getVMRuntimeStats(): GcStats **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **返回值:** | 类型 | 说明 | @@ -761,6 +779,8 @@ getVMRuntimeStat(item : string): number **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -804,6 +824,7 @@ try { **系统能力**:SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 | 名称 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | ------------ | | rssLimit | bigint | 是 | 应用程序进程的驻留集的限制,以KB为单位。 | @@ -817,6 +838,7 @@ try { **系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 | 名称 | 类型 | 可读 | 可写 | 说明 | | -------------------| ------- | ---- | ---- | ---------------------------------- | | totalHeap | bigint | 是 | 否 | 表示当前虚拟机的堆总大小,以KB为单位。 | @@ -924,6 +946,8 @@ type GcStats = Record<string, number> **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + | 类型 | 说明 | | -----------| ---------------------------- | | Record<string, number> | 表示值类型为Record键值对。 | @@ -946,6 +970,8 @@ isDebugState(): boolean **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + **返回值:** | 类型 | 说明 | @@ -1047,6 +1073,8 @@ dumpJsRawHeapData(needGC?: boolean): Promise<string> **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug +**ArkTS版本:** 该接口仅适用于ArkTS1.1。 + | 参数名 | 类型 | 必填 | 说明 | |-------------------------|---------|----|------------------------------------------| | needGC | boolean | 否 | 转储堆快照时是否需要GC,默认为true。当不填写该参数时,在转储前将触发GC。 | @@ -1063,7 +1091,6 @@ dumpJsRawHeapData(needGC?: boolean): Promise<string> | 错误码ID | 错误信息 | |----------| ----------------------------------------------------------------- | -| 401 | Invalid parameter. | | 11400106 | Quota exceeded. | | 11400107 | Fork operation failed. | | 11400108 | Failed to wait for the child process to finish. | -- Gitee