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 025c52d4b84c03ec7b55631ee9d328d09c192e15..84c76395d0953ef168fe7719818b61e047b78729 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