Hiview is the module of OpenHarmony that provides toolkits for device maintenance across different platforms.
Currently, Hiview opens only the plug-in management platform and system event source capabilities.
Figure 1 Architecture of Hiview
Hiview consists of the following components:
adapter: operating system adaptation layer, which adapts APIs of the system services in use
hiview base: Hiview base definition, which provides the plug-in definition, detector definition, and utility class
hiview core: Hiview core module, which provides the plug-in configuration, plug-in management, and event source functions
hiview services: Hiview services. Currently, only the Hiview run information exporting function is provided.
plugins: Independent service modules.
Hiview works in event-driven mode. The core of Hiview is a collection of HiSysEvent stubs distributed in the system.
Formatted events are reported to Hiview through the HiSysEvent API for processing. Figure 2 shows the data interaction process.
Figure 2 Data interaction between Hiview modules
The application framework and system services report system events using the HiSysEvent API.
HiSysEventSource reads events and prints the events to logs.
The code directory structure of Hiview is as follows:
/base/hiviewdfx/hiview
├── adapter # Platform adaptation code
│ └── service # Service adaptation code
├── base # Module definition and utility class
│ └── utility
├── build # Compilation scripts
├── include # Common definitions
├── core # Plug-in management
└── service # Platform services
Use of C++14 features requires libc of C++14 or later.
If you are interested in Hiview and want to become a contributor, refer to the Code Contribution Guide.
Hiview automatically starts with the device and loads plug-ins based on the configuration file.
hiviewdfx_hiview
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.