Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
051256c9
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
051256c9
编写于
8月 25, 2023
作者:
E
ester.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docs (22013)
Signed-off-by:
N
ester.zhou
<
ester.zhou@huawei.com
>
上级
3276fef7
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
347 addition
and
59 deletion
+347
-59
en/application-dev/reference/apis/Readme-EN.md
en/application-dev/reference/apis/Readme-EN.md
+1
-0
en/application-dev/reference/apis/js-apis-arkui-performancemonitor.md
...on-dev/reference/apis/js-apis-arkui-performancemonitor.md
+71
-0
en/application-dev/reference/apis/js-apis-settings.md
en/application-dev/reference/apis/js-apis-settings.md
+275
-59
未找到文件。
en/application-dev/reference/apis/Readme-EN.md
浏览文件 @
051256c9
...
...
@@ -206,6 +206,7 @@
-
[
@ohos.arkui.dragController (DragController)
](
js-apis-arkui-dragController.md
)
-
[
@ohos.arkui.drawableDescriptor (DrawableDescriptor)
](
js-apis-arkui-drawableDescriptor.md
)
-
[
@ohos.arkui.inspector (Layout Callback)
](
js-apis-arkui-inspector.md
)
-
[
@ohos.arkui.performanceMonitor (Performance Monitor)
](
js-apis-arkui-performancemonitor.md
)
-
[
@ohos.arkui.UIContext (UIContext)
](
js-apis-arkui-UIContext.md
)
-
[
@ohos.curves (Interpolation Calculation)
](
js-apis-curve.md
)
-
[
@ohos.font (Custom Font Registration)
](
js-apis-font.md
)
...
...
en/application-dev/reference/apis/js-apis-arkui-performancemonitor.md
0 → 100644
浏览文件 @
051256c9
# @ohos.arkui.performanceMonitor (Performance Monitor)
The
**performanceMonitor**
module provides APIs for performance monitoring indicators: response delay, completion delay, and frame loss rate.
> **NOTE**
>
> The APIs of this module are supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version.
>
> The APIs provided by this module are system APIs.
## Modules to Import
```
ts
import
performanceMonitor
from
'
@ohos.arkui.performanceMonitor
'
;
```
## ActionType
Enumerates types of actions that trigger user scenes.
**System capability**
: SystemCapability.ArkUI.ArkUI.Full
| Name| Value| Description|
| -- | -- | -- |
| LAST_DOWN | 0 | Pressing against the screen. |
| LAST_UP | 1 | Lifting a finger off the screen.|
| FIRST_MOVE | 2 | First swiping on the screen.|
## performanceMonitor.begin
begin(scene: string, startInputType: ActionType, note?: string): void
Starts a user scene.
**System capability**
: SystemCapability.ArkUI.ArkUI.Full
**Parameters**
| Name| Type| Mandatory| Description|
| -- | -- | -- | -- |
| scene | string | Yes| User scene ID.|
| startInputType |
[
ActionType
](
#actiontype
)
| Yes| Type of action that triggers the user scene.|
| note | string| No| Important information about the user scene.|
**Example**
```
ts
performanceMonitor
.
begin
(
"
LAUNCHER_APP_LAUNCH_FROM_ICON
"
,
performanceMonitor
.
ActionType
.
LAST_UP
,
"
APP_START_BEGIN
"
);
```
## performanceMonitor.end
end(scene: string): void
Ends a user scene.
**System capability**
: SystemCapability.ArkUI.ArkUI.Full
**Parameters**
| Name| Type| Mandatory| Description|
| -- | -- | -- | -- |
| scene | string | Yes| User scene ID, which corresponds to that in
**begin**
.|
**Example**
```
ts
performanceMonitor
.
end
(
"
LAUNCHER_APP_LAUNCH_FROM_ICON
"
);
```
en/application-dev/reference/apis/js-apis-settings.md
浏览文件 @
051256c9
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录