An app should focus on preventing battery drain from occurring to improve the performance of the app and the device. In order to reduce the battery usage of an app, the battery usage of the app should be determined. For this purpose, a battery analyzer has to be used to determine how your app uses battery and how performance could be improved.
Battery Stats collects battery data from your device. It creates a dump of all the battery data of a particular selected device using Android Debug Bridge (ADB) commands. Using these battery stats, the battery usage could be found out using a battery historian which would create a HTML file for viewing the battery stats results in a browser for user viewing.
A graphical representation battery historian of the live Zomato app is shown in the figure below:
A detailed explanation of the above battery usage...