1d590543dSopenharmony_ci# Battery Statistics<a name="EN-US_TOPIC_0000001115047353"></a> 2d590543dSopenharmony_ci 3d590543dSopenharmony_ci- [Introduction](#section11660541593) 4d590543dSopenharmony_ci- [Directory Structure](#section19472752217) 5d590543dSopenharmony_ci- [Repositories Involved](#section63151229062) 6d590543dSopenharmony_ci 7d590543dSopenharmony_ci## Introduction<a name="section11660541593"></a> 8d590543dSopenharmony_ci 9d590543dSopenharmony_ciThe battery statistics module provides the following functions: 10d590543dSopenharmony_ci 11d590543dSopenharmony_ci1. Software power consumption statistics: collects statistics on power consumption of each application or software. The power consumption is measured by Uid. Software power consumption includes but is not limited to the following items: CPU power consumption, running lock power consumption, mobile wireless power consumption, Wi-Fi power consumption, GNSS power consumption, sensor power consumption, camera power consumption, flashlight power consumption, etc. 12d590543dSopenharmony_ci2. Hardware power consumption statistics: collects statistics on power consumption of the hardware. Power consumption beyond software power consumption belongs to hardware power consumption. It includes but is not limited to the following items: user power consumption, call power consumption, screen power consumption, Wi-Fi power consumption, and Bluetooth power consumption. 13d590543dSopenharmony_ci 14d590543dSopenharmony_ci**Figure 1** Architecture of the battery statistics module<a name="fig106301571239"></a> 15d590543dSopenharmony_ci 16d590543dSopenharmony_ci 17d590543dSopenharmony_ci 18d590543dSopenharmony_ci## Directory Structure<a name="section19472752217"></a> 19d590543dSopenharmony_ci 20d590543dSopenharmony_ci``` 21d590543dSopenharmony_ci/base/powermgr/battery_statistics 22d590543dSopenharmony_ci├── figures # Architecture 23d590543dSopenharmony_ci├── frameworks # Framework layer 24d590543dSopenharmony_ci│ ├── napi # NAPI layer 25d590543dSopenharmony_ci│ └── native # Native layer 26d590543dSopenharmony_ci├── interfaces # API layer 27d590543dSopenharmony_ci│ └── inner_api # Internal APIs 28d590543dSopenharmony_ci├── sa_profile # SA profile 29d590543dSopenharmony_ci└── services # Service layer 30d590543dSopenharmony_ci│ ├── native # Native layer 31d590543dSopenharmony_ci│ ├── profile # Configuration file for average power consumption 32d590543dSopenharmony_ci│ └── zidl # Zidl API layer 33d590543dSopenharmony_ci├── test # Test cases 34d590543dSopenharmony_ci│ ├── fuzztest # Fuzz test 35d590543dSopenharmony_ci│ ├── unittest # Unit test 36d590543dSopenharmony_ci│ ├── systemtest # System test 37d590543dSopenharmony_ci│ └── utils # Test tools 38d590543dSopenharmony_ci└── utils # Utilities 39d590543dSopenharmony_ci``` 40d590543dSopenharmony_ci 41d590543dSopenharmony_ci 42d590543dSopenharmony_ci 43d590543dSopenharmony_ci## Repositories Involved<a name="section63151229062"></a> 44d590543dSopenharmony_ci 45d590543dSopenharmony_ci[Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md) 46d590543dSopenharmony_ci 47d590543dSopenharmony_ci[powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager) 48d590543dSopenharmony_ci 49d590543dSopenharmony_ci[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager) 50d590543dSopenharmony_ci 51d590543dSopenharmony_ci[powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager) 52d590543dSopenharmony_ci 53d590543dSopenharmony_ci[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager) 54d590543dSopenharmony_ci 55d590543dSopenharmony_ci**powermgr_battery_statistics** 56d590543dSopenharmony_ci 57d590543dSopenharmony_ci[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite) 58d590543dSopenharmony_ci 59d590543dSopenharmony_ci[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite) 60