From a563f02106e003122a2a98c8c3a43917292bdc78 Mon Sep 17 00:00:00 2001 From: yuhaoqiang Date: Thu, 14 Aug 2025 14:04:57 +0800 Subject: [PATCH 1/2] add interface getAppVMObjectUsed Signed-off-by: yuhaoqiang Change-Id: I4e22d028629a690ed7a6f835277a1fe5e980c92b --- api/@ohos.hidebug.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index 76957f11ca..c6f6b67216 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -875,6 +875,16 @@ declare namespace hidebug { */ type GcStats = Record; + /** + * Obtains the memory usage of ArkTS objects in the virtual machine. + * + * @returns { bigint } Returns the memory usage of ArkTS objects. + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @since 21 + * @arkts 1.1 + */ + function getAppVMObjectUsed(): bigint; + /** * Obtains all system GC statistics. * -- Gitee From 557392d055214405800b3ed9d9ff8985e5c00487 Mon Sep 17 00:00:00 2001 From: yuhaoqiang Date: Thu, 14 Aug 2025 16:57:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuhaoqiang Change-Id: I4e22d028629a690ed7a6f835277a1fe5e980c92b Signed-off-by: yuhaoqiang --- api/@ohos.hidebug.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index c6f6b67216..e6698d6a0b 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -881,7 +881,6 @@ declare namespace hidebug { * @returns { bigint } Returns the memory usage of ArkTS objects. * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 21 - * @arkts 1.1 */ function getAppVMObjectUsed(): bigint; -- Gitee