From 21edfb5eb80f12e2de01217f17039e08088ac484 Mon Sep 17 00:00:00 2001 From: j30012456 Date: Tue, 10 May 2022 15:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: j30012456 --- 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 03ed4be67f..db6315ad48 100644 --- a/api/@ohos.hidebug.d.ts +++ b/api/@ohos.hidebug.d.ts @@ -67,6 +67,24 @@ declare namespace hidebug { */ function getSharedDirty() : bigint; + /** + * Obtains the size of the private dirty memory of a process. + * @param - + * @return Returns the size of the private dirty memory. + * @since 9 + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + */ + function getPrivateDirty() : bigint; + + /** + * Obtains the cpu usage percent of a process. + * @param - + * @return Returns the cpu usage of a process. + * @since 9 + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + */ + function getCpuUsage() : number; + /** * Start CPU Profiling. * The input parameter is a user-defined file name, excluding the file suffix. @@ -103,5 +121,16 @@ declare namespace hidebug { * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug */ function dumpHeapData(filename : string) : void; + + /** + * Get a debugging dump of a system service by service id. + * Not for use by third-party applications for permission. + * + * @param serviceid Indicates the id of the service ability . + * @return - errcode returned from SA dump function. + * @since 9 + * @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug + */ + function getServiceDump(serviceid : number) : number; } export default hidebug; -- Gitee