From f0dd41d30a9eccea083cca1b304d5cffc793eafc Mon Sep 17 00:00:00 2001 From: mlkgeek <122681168@qq.com> Date: Wed, 23 Jul 2025 17:16:44 +0800 Subject: [PATCH] convert gwpasan number to int Signed-off-by: caoyiting --- api/@ohos.hidebug.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.hidebug.d.ts b/api/@ohos.hidebug.d.ts index d2c84ef6fa..1ae6d4b3cd 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -931,30 +931,30 @@ declare namespace hidebug { /** * sample rate of GWP-ASAN * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 20 */ - sampleRate?: number; + sampleRate?: int; /** * the max simutaneous allocations of GWP-ASAN * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 20 */ - maxSimutaneousAllocations?: number; + maxSimutaneousAllocations?: int; } /** * Enable the GWP-ASAN grayscale of your application. * @param { GwpAsanOptions } [options] - The options of GWP-ASAN grayscale. - * @param { number } [duration] - The duration days of GWP-ASAN grayscale. + * @param { int } [duration] - The duration days of GWP-ASAN grayscale. * @throws { BusinessError } 11400114 - The number of GWP-ASAN applications of this device overflowed after last boot. * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 20 */ - function enableGwpAsanGrayscale(options?: GwpAsanOptions, duration?: number): void; + function enableGwpAsanGrayscale(options?: GwpAsanOptions, duration?: int): void; /** * Disable the GWP-ASAN grayscale of your application. @@ -967,11 +967,11 @@ declare namespace hidebug { /** * Obtain the remaining days of GWP-ASan grayscale for your application. * - * @returns { number } The remaining days of GWP-ASan grayscale. + * @returns { int } The remaining days of GWP-ASan grayscale. * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug * @since 20 */ - function getGwpAsanGrayscaleState(): number; + function getGwpAsanGrayscaleState(): int; /** * Trimming level of raw heap snapshot. -- Gitee