From 22996ff0f1a629e1ac900d821227dd5da4b21b19 Mon Sep 17 00:00:00 2001 From: hhl Date: Wed, 28 May 2025 09:49:57 +0800 Subject: [PATCH] add js rawheap interface Signed-off-by: hhl --- api/@ohos.hidebug.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index 5f14a8021f..8f3a11960e 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -949,5 +949,25 @@ declare namespace hidebug { * @since 20 */ function getGwpAsanGrayscaleState(): number; + + /** + * JsRawHeapCrop level. + * + * @enum { number } + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @since 20 + */ + enum JsRawHeapCropLevel { + CROP_LEVEL_1 = 1, + CROP_LEVEL_2 = 2, + } + /** + * Set js rawHeap crop level of the calling thread. + * @param { JsRawHeapCropLevel } level - jsRawHeap. + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + * @atomicservice + * @since 20 + */ + function setJsRawHeapCropLevel(level: JsRawHeapCropLevel): void; } export default hidebug; -- Gitee