• Home
Name Date Size #Lines LOC

..--

command/07-Sep-2024-174115

frameworks/07-Sep-2024-952735

interfaces/native/innerkits/07-Sep-2024-25088

BUILD.gnD07-Sep-20242.1 KiB5450

LICENSED07-Sep-20249.9 KiB177150

README.mdD07-Sep-20241.3 KiB2918

README_zh.mdD07-Sep-20241.2 KiB2918

bundle.jsonD07-Sep-2024848 3534

README.md

1# hievent Module<a name="EN-US_TOPIC_0000001078674782"></a>
2
3-   [Overview](#section469617221261)
4-   [Architecture](#section15884114210197)
5-   [Repositories Involved](#section767551120815)
6
7## Overview<a name="section469617221261"></a>
8
9This module provides APIs for printing faults, user behavior, and power consumption statistics of service components. It also supports event serialization.
10
11## Architecture<a name="section15884114210197"></a>
12
131.  An event is created.
142.  Data is added for the event.
153.  The event is reported.
164.  The event component checks the parameter validity and performs binary serialization to convert the event into structured data.
175.  The event component calls the output function to write the event into a file. Each time a new file is written, the common header information is added to it.
186.  The upload component passively or proactively reports the event information to smartphones at a scheduled time.
19
20## Repositories Involved<a name="section767551120815"></a>
21
22[DFX subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/dfx.md)
23
24[hiviewdfx\_hilog\_lite](https://gitee.com/openharmony/hiviewdfx_hilog_lite/blob/master/README.md)
25
26[hiviewdfx\_hiview\_lite](https://gitee.com/openharmony/hiviewdfx_hiview_lite/blob/master/README.md)
27
28**hiviewdfx\_hievent\_lite**
29

README_zh.md

1# 项目介绍<a name="ZH-CN_TOPIC_0000001078674782"></a>
2
3-   [简介](#section469617221261)
4-   [架构](#section15884114210197)
5-   [相关仓](#section767551120815)
6
7## 简介<a name="section469617221261"></a>
8
9为系统内业务组件提供故障、用户行为、功耗统计三类事件打点接口,支持对事件进行序列化。
10
11## 架构<a name="section15884114210197"></a>
12
131.  事件打点时通过接口先创建一个事件;
142.  通过接口向事件中添加数据;
153.  添加完成后通过接口上报事件;
164.  event组件检查参数有效性后,对事件进行二进制序列化处理将事件转换为结构化数据;
175.  event调用输出接口将事件写入文件,每次新写文件时,先向事件文件中加入公共头信息;
186.  事件信息上报至手机侧的处理由上传组件被动或主动定时完成;
19
20## 相关仓<a name="section767551120815"></a>
21
22[DFX子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/DFX%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
23
24[hiviewdfx\_hilog\_lite](https://gitee.com/openharmony/hiviewdfx_hilog_lite/blob/master/README_zh.md)
25
26[hiviewdfx\_hiview\_lite](https://gitee.com/openharmony/hiviewdfx_hiview_lite/blob/master/README_zh.md)
27
28**hiviewdfx\_hievent\_lite**
29