From 0b832b2430d5bde1f7658fabe69214e623450b90 Mon Sep 17 00:00:00 2001 From: huanglihao Date: Wed, 18 Jun 2025 12:55:04 +0000 Subject: [PATCH] =?UTF-8?q?performanceMonitor=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huanglihao --- .../apis-arkui/js-apis-arkui-performancemonitor-sys.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-performancemonitor-sys.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-performancemonitor-sys.md index 025c52d4b84..84c76395d09 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-performancemonitor-sys.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-performancemonitor-sys.md @@ -1,6 +1,6 @@ # @ohos.arkui.performanceMonitor (性能监测)(系统接口) -用户操作场景提供性能相关指标监测能力,目前仅包含响应时延、完成时延、丢帧。 +提供用户操作场景性能相关指标监测能力,在场景开始和结束时分别调用begin和end接口,即可获得该场景相关性能指标,目前仅包含响应时延、完成时延、丢帧。 > **说明:** > @@ -33,7 +33,7 @@ import { performanceMonitor } from '@kit.ArkUI'; begin(scene: string, startInputType: ActionType, note?: string): void -用户场景开始。 +用于标记用户场景开始,用户场景开始时调用此接口。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full @@ -47,6 +47,8 @@ begin(scene: string, startInputType: ActionType, note?: string): void | note | string| 否 | 用户场景重要信息。 | **示例:** + +用户点击图标启动应用场景动效开始点,由离手事件LAST_UP触发。 ```ts performanceMonitor.begin("LAUNCHER_APP_LAUNCH_FROM_ICON", performanceMonitor.ActionType.LAST_UP, "APP_START_BEGIN"); ``` @@ -56,7 +58,7 @@ performanceMonitor.begin("LAUNCHER_APP_LAUNCH_FROM_ICON", performanceMonitor.Act end(scene: string): void -用户场景结束 +用于标记用户场景结束,用户场景结束时调用此接口。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full @@ -66,6 +68,8 @@ end(scene: string): void | scene | string | 是 | 用户场景id,与begin配对。 | **示例:** + +用户点击图标启动应用场景动效结束点。 ```ts performanceMonitor.end("LAUNCHER_APP_LAUNCH_FROM_ICON"); ``` \ No newline at end of file -- Gitee