From a9cf3f8f2df8664c19230f66fea5e2864f827b26 Mon Sep 17 00:00:00 2001 From: huanglihao Date: Fri, 4 Jul 2025 04:18:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= 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, 5 insertions(+), 5 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 909d939e52d..6c239616de9 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 @@ -57,9 +57,9 @@ begin(scene: string, startInputType: ActionType, note?: string): void | 参数名 | 类型 | 必填 | 说明 | | -- | -- | -- | -- | -| scene | string | 是 | 用户场景id。 | +| scene | string | 是 | 用户场景id。长度限制50个字符,推荐字母大写且用下划线连接,例如LAUNCHER_APP_LAUNCH_FROM_ICON。 | | startInputType | [ActionType](#actiontype)| 是 | 用户场景触发模式。 | -| note | string| 否 | 用户场景重要信息。 | +| note | string| 否 | 用户场景备注信息。长度限制30个字符,可以空缺不填,填写后性能指标上报会携带备注信息,不填无影响。 | **示例:** @@ -80,11 +80,11 @@ end(scene: string): void **参数:** | 参数名 | 类型 | 必填 | 说明 | | -- | -- | -- | -- | -| scene | string | 是 | 用户场景id,与begin配对。 | +| scene | string | 是 | 用户场景id,与begin配对严格保持一致,否则本次场景监测无效。 | **示例:** -用户点击图标应用场景动效结束点 +用户点击图标启动应用场景动效结束点 ```ts performanceMonitor.end("LAUNCHER_APP_LAUNCH_FROM_ICON"); ``` @@ -102,7 +102,7 @@ recordInputEventTime(type: ActionType, sourceType: SourceType, time: number): vo | -- | -- | -- | -- | | type | [ActionType](#actiontype)| 是 | 用户场景触发模式。 | | sourceType | [SourceType](#sourcetype12) | 是 | 用户场景触发源。 | -| time | number | 是 | 场景触发时间(ms)。 | +| time | number | 是 | 场景触发时间(ms),13位数字表示的时间戳,例如1751508570794。不正确的传参会导致用户操作响应时延指标异常。若传负值将自动转化为当前系统时间,若传正值则正常使用。 | **错误码:** -- Gitee