dfx.md 1.6 KB
Newer Older
L
liudongmiao 已提交
1
# DFX<a name="EN-US_TOPIC_0000001083007544"></a>
W
wenjun 已提交
2

L
liudongmiao 已提交
3 4 5 6
-   [Introduction](#section1347419114210)
-   [Architecture](#section342962219551)
-   [Directory Structure](#section62815498425)
-   [Repositories Involved](#section767551120815)
W
wenjun 已提交
7

L
liudongmiao 已提交
8
## Introduction<a name="section1347419114210"></a>
W
wenjun 已提交
9

L
liudongmiao 已提交
10
[Design for X](https://en.wikipedia.org/wiki/Design_for_X)  \(DFX\) refers to the software design that aims to improve the quality attribute in OpenHarmony. It mainly consists of two parts: design for reliability \(DFR\) and design for testability \(DFT\).
W
wenjun 已提交
11

L
liudongmiao 已提交
12
The DFX subsystem provides the following capabilities:
W
wenjun 已提交
13

L
liudongmiao 已提交
14 15
-   HiLog: Implements the logging capability.
-   HiEvent: Implements the event logging capability.
W
wenjun 已提交
16

L
liudongmiao 已提交
17
-   Hiview: Implements the logging task capability.
W
wenjun 已提交
18

L
liudongmiao 已提交
19
## Architecture<a name="section342962219551"></a>
W
wenjun 已提交
20

L
liudongmiao 已提交
21
**Figure  1**  Architecture of the DFX subsystem<a name="fig18347131919423"></a>  
W
wenjun 已提交
22 23


L
liudongmiao 已提交
24
![](figures/en-us_image_0000001130109907.png)
W
wenjun 已提交
25

L
liudongmiao 已提交
26
## Directory Structure<a name="section62815498425"></a>
W
wenjun 已提交
27 28

```
L
liudongmiao 已提交
29 30 31 32
base/hiviewdfx        # DFX base repository, which stores compilation-related configurations
├── hiview_lite    # Hiview_lite module, which implements the logging task capability for the mini system
├── hilog_lite     # HiLog_lite module, which implements the logging capability for the mini and small systems
├── hievent_lite   # HiEvent_lite module, which implements the event logging capability for the mini system
W
wenjun 已提交
33 34
```

L
liudongmiao 已提交
35
## Repositories Involved<a name="section767551120815"></a>
W
wenjun 已提交
36

L
liudongmiao 已提交
37
DFX subsystem:
W
wenjun 已提交
38

L
liudongmiao 已提交
39
**hmf/hiviwdfx**
W
wenjun 已提交
40

L
liudongmiao 已提交
41
DFX modules:
W
wenjun 已提交
42

L
liudongmiao 已提交
43
hmf/hiviwdfx/hilog\_lite
W
wenjun 已提交
44

L
liudongmiao 已提交
45
hmf/hiviwdfx/hiview\_lite
W
wenjun 已提交
46

L
liudongmiao 已提交
47
hmf/hiviwdfx/hievent\_lite
W
wenjun 已提交
48