• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-322256

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-20241.3 KiB3618

README_zh.mdD12-May-20241 KiB3518

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024373 1918

README.md

1# hiTraceMeter
2
3### Introduction
4
5Logging consists of two parts: hiAppEvent for application event logging and hiTraceMeter for performance tracing.
6
7You can call `hiAppEvent` APIs to log various events that occur during application running.
8
9This sample illustrates how to obtain application fault information in eTS. The display effect is as follows:
10
11![](screenshots/device/main.png)
12
13### Concepts
14
15hiAppEvent: A module that provides the application event logging functions, such as writing application events to the event file and managing the event logging configuration.
16
17### Required Permissions
18
19N/A
20
21### Usage
22
231. Touch **Write Event**. A message is displayed, indicating that event writing is successful.
24
252. If you turn on the **Disable hiAppEvent** switch and touch **Write Event** again, a message is displayed, indicating that the event writing has failed.
26
273. If you turn off the **Disable hiAppEvent** switch and touch **Write Event** again, a message is displayed, indicating that event writing is successful.
28
29### Constraints
30
311. This sample can only be run on standard-system devices.
32
332. Performance tracing results can be verified only based on the logs obtained by running commands.
34
353. DevEco Studio 3.0 Beta3 (Build version: 3.0.0.901, built on May 30, 2022) must be used.
36

README_zh.md

1# 测试打点
2
3### 简介
4
51.测试打点包括应用打点与性能打点两部分。
6
72.应用打点通过调用`hiAppEvent`接口来记录应用运行过程中发生的各种信息。
8
9本示例展示了在eTS中如何获取应用故障相关信息。实现效果如下:
10
11![](screenshots/device/main.png)
12
13### 相关概念
14
15应用打点:本模块提供了应用事件打点能力,包括对打点数据的落盘,以及对打点功能的管理配置。
16
17### 相关权限
18
19不涉及。
20
21### 使用说明
22
231.点击"事件写入"按钮,显示成功写入事件。
24
252.打开"禁用应用打点"开关,再次点击"事件写入"按钮,显示事件写入失败。
26
273.关闭"禁用应用打点"开关,再次点击"事件写入"按钮,显示事件写入成功。
28
29### 约束与限制
30
311.本示例仅支持在标准系统上运行。
32
332.性能打点验证只能通过上述命令获取日志来进行验证。
34
353.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。