diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index f922278a859d14ac2a74c6db9b3a70c1cef249ed..93c35c1a375b2d01790f48f39e9c3bf23bab1791 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. * @@ -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;