|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| adapter/ | | 12-May-2024 | - | 7,443 | 5,317 |
| base/ | | 12-May-2024 | - | 8,747 | 6,469 |
| build/ | | 12-May-2024 | - | 583 | 474 |
| core/ | | 12-May-2024 | - | 3,481 | 2,592 |
| figures/ | | 12-May-2024 | - | | |
| include/ | | 12-May-2024 | - | 180 | 102 |
| plugins/ | | 12-May-2024 | - | 13,122 | 9,587 |
| service/ | | 12-May-2024 | - | 379 | 311 |
| test/ | | 12-May-2024 | - | 2,881 | 2,176 |
| utility/smart_parser/ | | 12-May-2024 | - | 2,900 | 2,246 |
| .gitattributes | D | 12-May-2024 | 631 | 16 | 15 |
| BUILD.gn | D | 12-May-2024 | 3.2 KiB | 133 | 114 |
| CMakeLists.txt | D | 12-May-2024 | 1.8 KiB | 56 | 47 |
| LICENSE | D | 12-May-2024 | 10.1 KiB | 178 | 150 |
| OAT.xml | D | 12-May-2024 | 4.9 KiB | 74 | 21 |
| README.md | D | 12-May-2024 | 3.5 KiB | 93 | 54 |
| README_zh.md | D | 12-May-2024 | 3.2 KiB | 95 | 55 |
| bundle.json | D | 12-May-2024 | 2.3 KiB | 71 | 70 |
| hisysevent.yaml | D | 12-May-2024 | 3.7 KiB | 87 | 67 |
| hiview.gni | D | 12-May-2024 | 1.2 KiB | 30 | 27 |
| hiview_zh.md | D | 12-May-2024 | 23.7 KiB | 449 | 341 |
| kernel_vendor.yaml | D | 12-May-2024 | 1.4 KiB | 39 | 19 |
| main.cpp | D | 12-May-2024 | 1.3 KiB | 41 | 18 |
README.md
1# Hiview<a name="EN-US_TOPIC_0000001162254005"></a>
2
3- [Introduction](#section1289063163919)
4- [Directory Structure](#section16611433113712)
5- [Constraints](#section7147138193814)
6- [Contribution](#section10404153013381)
7- [Usage](#section1046874983819)
8- [Repositories Involved](#section16647142611396)
9
10## Introduction<a name="section1289063163919"></a>
11
12Hiview is the module of OpenHarmony that provides toolkits for device maintenance across different platforms.
13
14Currently, Hiview opens only the plug-in management platform and system event source capabilities.
15
16**Figure 1** Architecture of Hiview
17
18
19
20Hiview consists of the following components:
21
22adapter: operating system adaptation layer, which adapts APIs of the system services in use
23
24hiview base: Hiview base definition, which provides the plug-in definition, detector definition, and utility class
25
26hiview core: Hiview core module, which provides the plug-in configuration, plug-in management, and event source functions
27
28hiview services: Hiview services. Currently, only the Hiview run information exporting function is provided.
29
30plugins: Independent service modules.
31
32Hiview works in event-driven mode. The core of Hiview is a collection of HiSysEvent stubs distributed in the system.
33
34Formatted events are reported to Hiview through the **HiSysEvent** API for processing. Figure 2 shows the data interaction process.
35
36**Figure 2** Data interaction between Hiview modules
37
38
39
401. The application framework and system services report system events using the **HiSysEvent** API.
41
422. HiSysEventSource reads events and prints the events to logs.
43
44## Directory Structure<a name="section16611433113712"></a>
45
46The code directory structure of Hiview is as follows:
47
48```
49/base/hiviewdfx/hiview
50├── adapter # Platform adaptation code
51│ ├── service # Service adaptation code
52│ └── system_service # System API adaptation code
53├── base # Module definition and utility class
54│ └── utility
55├── build # Compilation scripts
56├── include # Common definitions
57├── core # Plug-in management
58└── service # Platform services
59```
60
61## Constraints<a name="section7147138193814"></a>
62
63Use of C++14 features requires libc of C++14 or later.
64
65## Contribution<a name="section10404153013381"></a>
66
67If you are interested in Hiview and want to become a contributor, refer to the _Code Contribution Guide_.
68
69## Usage<a name="section1046874983819"></a>
70
71Hiview automatically starts with the device and loads plug-ins based on the configuration file.
72
73## Repositories Involved<a name="section16647142611396"></a>
74
75[DFX subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/dfx.md)
76
77**hiviewdfx\_hiview**
78
79[hiviewdfx\_hilog](https://gitee.com/openharmony/hiviewdfx_hilog/blob/master/README.md)
80
81[hiviewdfx\_hiappevent](https://gitee.com/openharmony/hiviewdfx_hiappevent/blob/master/README.md)
82
83[hiviewdfx\_hisysevent](https://gitee.com/openharmony/hiviewdfx_hisysevent/blob/master/README.md)
84
85[hiviewdfx\_faultloggerd](https://gitee.com/openharmony/hiviewdfx_faultloggerd/blob/master/README.md)
86
87[hiviewdfx\_hilog\_lite](https://gitee.com/openharmony/hiviewdfx_hilog_lite/blob/master/README.md)
88
89[hiviewdfx\_hievent\_lite](https://gitee.com/openharmony/hiviewdfx_hievent_lite/blob/master/README.md)
90
91[hiviewdfx\_hiview\_lite](https://gitee.com/openharmony/hiviewdfx_hiview_lite/blob/master/README.md)
92
93