diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index 5f14a8021faa10068a0b403baf16f940409056ec..8f3a11960e0983bd31fb6fc381205127e0f21a22 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;