Method and device for detecting power consumption of functions in mobile terminal applications
A mobile terminal and application technology, applied in error detection/correction, electrical digital data processing, climate sustainability, etc., can solve the problem of deviation in power data, inaccurate power data, and inability to locate application code or corresponding functions and other issues to achieve the effect of easy implementation and improved accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] The present invention provides a method for detecting the power consumption of a function in an application program of a mobile terminal. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although A logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0030] The overall test environment of the embodiment of the present invention is as follows:
[0031] A device for obtaining power data of mobile terminals. The device can be a power monitor (PowerMonitor, PM for short). The power monitor can supply power to any mobile device with a power supply voltage less than 4V, and can be combined with its own monitoring software. During the power supply process, the power data of the mobile device is monitored within a specified period of time...
Embodiment 2
[0053] Figure 4 It is a flow chart of the method for detecting power consumption of a function in this embodiment, and the method will be described in detail below in conjunction with specific test products and test scenarios.
[0054] The test product is the mobile phone security application SafeTest.apk, which is used to conduct security scans on the applications on the mobile phone and determine whether there are risks in the application (calculate the MD5 value of all applications, and then send the MD5 to the server to check whether it is a dangerous application). The application has a specific function APKsMD5Cal(), which is used to calculate the MD5 value of all installed applications in the mobile phone.
[0055] Test scenario: install 50 apps on an android phone, run SafeTest.apk, and scan all the apps, assuming that the scan takes 30 seconds.
[0056] The methods include:
[0057] S401. Establish a time axis with a certain moment as a starting point.
[0058] Spe...
Embodiment 3
[0073] Figure 5 It is a flow chart of the function power consumption detection method of this embodiment, and the method includes:
[0074] S501. Acquire power data of the mobile terminal within a preset time period, and monitor the start execution time and end execution time of functions in the application program within the preset time period.
[0075] Specifically, a preset time period is predetermined, the power data of the mobile terminal within the preset time period is acquired, and the start execution time and end execution time of the function in the application program are monitored within the preset time period. Wherein, the preset time period includes at least a specific starting moment and a time length.
[0076] S502. Establish a time axis.
[0077] Specifically, a time axis is established with 0 as the starting point.
[0078] S503. Load the power data onto the time axis.
[0079] Since the time axis starts from 0, the time point in the power data can corre...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


