From 96bcba2e025d6d1d14d4b9e35bb2275f6c2d7360 Mon Sep 17 00:00:00 2001 From: zhouhaifeng Date: Wed, 28 Feb 2024 16:59:07 +0800 Subject: [PATCH 1/2] fix ACE to ARKUI of hidebug Signed-off-by: zhouhaifeng --- api/@ohos.hidebug.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index f922278a85..95107286b8 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -476,13 +476,13 @@ declare namespace hidebug { */ const ABILITY_MANAGER: number; /** - * ACE development framework tag. + * ARKUI development framework tag. * * @constant * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 12 */ - const ACE: number; + const ARKUI: number; /** * ARK tag. * -- Gitee From 8b811eab20adc76726ea134a699f1e36cf335996 Mon Sep 17 00:00:00 2001 From: zhouhaifeng Date: Thu, 29 Feb 2024 16:25:36 +0800 Subject: [PATCH 2/2] add runtime stat of hidebug Signed-off-by: zhouhaifeng --- api/@ohos.hidebug.d.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index 95107286b8..93c35c1a37 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -750,5 +750,34 @@ declare namespace hidebug { * @since 12 */ function stopAppTraceCapture(): void; + + /** + * Obtains given item of virtual machine runtime statistic. + * + * @param { string } item - virtual machine runtime item. + * @returns { number } Returns value of given item. + * @throws { BusinessError } 401 - Invalid argument + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @since 12 + */ + function getVMRuntimeStat(item: string): number; + + /** + * Interface of virtual machine runtime statistic. + * + * @typedef Stats + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @since 12 + */ + type Stats = Record; + + /** + * Obtains virtual machine runtime statistic. + * + * @returns { number } Returns runtime statistic. + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @since 12 + */ + function getVMRuntimeStats(): Stats; } export default hidebug; -- Gitee