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 b61d4b2af46f345f9ed60810720dadbe8d24f64b..1fdce17bf7eeb5a4d91865b1b95c1923b169e81f 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. |