From 4afdd670406c843d85bfe20b72411b12c34514bc Mon Sep 17 00:00:00 2001 From: jiangyuan0000 Date: Mon, 19 Sep 2022 15:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangyuan0000 --- .../reference/apis/js-apis-hidebug.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-hidebug.md b/zh-cn/application-dev/reference/apis/js-apis-hidebug.md index cf4397ba91..c57ae6c7aa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hidebug.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hidebug.md @@ -16,7 +16,7 @@ import hidebug from '@ohos.hidebug'; getNativeHeapSize(): bigint -获取native heap内存的总大小。 +获取本应用堆内存的总大小。 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。 @@ -26,7 +26,7 @@ getNativeHeapSize(): bigint | 类型 | 说明 | | ------ | --------------------------- | -| bigint | 返回native heap内存总大小,单位为kB。 | +| bigint | 返回本应用堆内存总大小,单位为kB。 | **示例:** @@ -39,7 +39,7 @@ getNativeHeapSize(): bigint getNativeHeapAllocatedSize(): bigint -获取native heap内存的已分配内存大小。 +获取本应用堆内存的已分配内存大小。 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。 @@ -49,7 +49,7 @@ getNativeHeapAllocatedSize(): bigint | 类型 | 说明 | | ------ | --------------------------------- | -| bigint | 返回native heap内存的已分配内存,单位为kB。 | +| bigint | 返回本应用堆内存的已分配内存,单位为kB。 | **示例:** @@ -62,7 +62,7 @@ getNativeHeapAllocatedSize(): bigint getNativeHeapFreeSize(): bigint -获取native heap内存的空闲内存大小。 +获取本应用堆内存的空闲内存大小。 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。 @@ -72,7 +72,7 @@ getNativeHeapFreeSize(): bigint | 类型 | 说明 | | ------ | ------------------------------- | -| bigint | 返回native heap内存的空闲内存,单位为kB。 | +| bigint | 返回本应用堆内存的空闲内存,单位为kB。 | **示例:** ```js @@ -84,7 +84,7 @@ getNativeHeapFreeSize(): bigint getPss(): bigint -获取应用进程PSS内存大小。 +获取应用进程实际使用的物理内存大小。 **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug @@ -92,7 +92,7 @@ getPss(): bigint | 类型 | 说明 | | ------ | ------------------------- | -| bigint | 返回应用进程PSS内存大小,单位为kB。 | +| bigint | 返回应用进程实际使用的物理内存大小,单位为kB。 | **示例:** ```js @@ -144,7 +144,7 @@ getPrivateDirty(): bigint getCpuUsage(): number -获取进程的cpu占用率。 +获取进程的cpu使用率。 如占用率为50%,则返回0.5。 @@ -154,7 +154,7 @@ getCpuUsage(): number | 类型 | 说明 | | ------ | -------------------------- | -| number | 获取进程的cpu占用率。 | +| number | 获取进程的cpu使用率。 | **示例:** @@ -166,7 +166,7 @@ getCpuUsage(): number startProfiling(filename : string) : void -启动虚拟机Profiling方法跟踪,`startProfiling()`方法的调用需要与`stopProfiling()`方法的调用一一对应,先开启后关闭,严禁使用`start->start->stop`,`start->stop->stop`,`start->start->stop->stop`等顺序的调用方式。 +启动虚拟机Profiling方法跟踪,`startProfiling()`方法的调用需要与`stopProfiling()`方法的调用一一对应,先开启后关闭,严禁使用`start->start->stop`,`start->stop->stop`,`start->start->stop->stop`等类似的顺序调用。 **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug @@ -192,7 +192,7 @@ hidebug.stopProfiling(); stopProfiling() : void -停止虚拟机Profiling方法跟踪,`stopProfiling()`方法的调用需要与`startProfiling()`方法的调用一一对应,先开启后关闭,严禁使用`start->start->stop`,`start->stop->stop`,`start->start->stop->stop`等顺序的调用方式。 +停止虚拟机Profiling方法跟踪,`stopProfiling()`方法的调用需要与`startProfiling()`方法的调用一一对应,先开启后关闭,严禁使用`start->start->stop`,`start->stop->stop`,`start->start->stop->stop`等类似的顺序调用。 **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug -- GitLab