Summary of the invention
For the technical problems in the prior art, the present invention provides a kind of mobile telephone power consumption analysis system.
A kind of mobile telephone power consumption analysis system, including power consumption static parameter analysis module, power consumption dynamic parameter analysis module, function
Consume parameter setting module, in which:
Power consumption static parameter analysis module is used to read the quiescent dissipation parameter of mobile phone to be measured Yu mark post mobile phone, and by quiescent dissipation
Classification storage is showed parameter into Excel table respectively;
Power consumption dynamic parameter analysis module is used to acquire mobile phone to be measured and the interface corresponding programme of mark post mobile phone and corresponding interface
Title, and record mobile phone and mark post mobile phone to be measured respectively and enter the dynamic power consumption parameter behind different interfaces, in the form of suspended window
It is shown;
Power consumption parameter setup module is used to be adjusted the mobile phone parameters for influencing quiescent dissipation parameter and dynamic power consumption parameter, with
The mobile phone parameters for reaching mobile phone to be measured are identical as the mobile phone parameters of mark post mobile phone.
Further, power consumption static parameter analysis module reads hand to be measured by file node, software interface, configuration file
The quiescent dissipation parameter of machine and mark post mobile phone.
Further, power consumption static parameter analysis module is also used to the quiescent dissipation to the important attribute in Excel table
Parameter is marked.
Further, power consumption dynamic parameter analysis module is also used to be arranged the threshold value of the dynamic power consumption parameter of important attribute,
And it is reminded when the dynamic power consumption parameter of important attribute exceeds threshold value.
Further, power consumption dynamic parameter analysis module is also used to through timer periodic refreshing dynamic power consumption parameter, and
It is saved with the file of Log format.
Further, quiescent dissipation parameter includes CPU architecture information, CPU platform information, CPU operating mode, CPU minimum
Working frequency, CPU maximum operation frequency, CPU core number, CPU digit, cpu frequency voltage allocation list, CPU scene configuration information, screen
Curtain size, screen density, cpu frequency voltage allocation list, battery capacity, system information, camera pixel, saves screen resolution
Partial parameters or whole parameters in electrical properties, in which:
CPU maximum operation frequency, CPU core number, cpu frequency voltage allocation list, screen size, battery capacity, province's electrical properties are attached most importance to
Want the quiescent dissipation parameter of attribute.
Further, dynamic power consumption parameter includes CPU core number, CPU working frequency, cpu load rate, GPU frame per second, GPU points
Resolution, GPU working frequency, cpu temperature, GPU temperature, battery temperature, mobile phone brightness, sound of mobile phone, network condition, in mobile phone
It deposits, the partial parameters in mobile phone free memory, battery capacity, battery load current, cell voltage or whole parameter,
In:
Cpu load rate, cpu temperature, GPU temperature, battery temperature, network condition, mobile phone EMS memory, mobile phone free memory are attached most importance to
The dynamic power consumption parameter of attribute is wanted, cpu load rate, cpu temperature, GPU temperature, battery temperature is arranged in power consumption dynamic parameter analysis module
Degree, network condition, the threshold value of mobile phone EMS memory, mobile phone free memory.
Further, dynamic power Parameter analysis module passes through colored font to the dynamic power consumption parameter beyond threshold value and shows
It is reminded.
Further, mobile phone parameters include CPU minimum frequency of operation, CPU maximum operation frequency, CPU core number, CPU work
Mode, GPU frame per second, GPU resolution ratio, mobile phone brightness, sound of mobile phone, the partial parameters in mobile phone EMS memory cleaning are all joined
Number.
Further, power consumption parameter setup module is when part mobile phone parameters are adjusted, first judge the mobile phone whether be
Root, if so, being adjusted, if it is not, can not then be adjusted.
Mobile telephone power consumption analysis system of the invention passes through power consumption static parameter analysis module, power consumption dynamic parameter analysis mould
The combination of block and power consumption parameter setup module makes analysis personnel realize comprehensive point to the power consumption of mobile phone to be measured and mark post mobile phone
Analysis, the advantages of the difference of mobile phone to be measured Yu mark post mobile phone is accurately found out convenient for analysis personnel, takes mark post mobile phone, then specific aim
The defect of mobile phone to be measured is improved, to promote the performance of mobile phone to be measured;Meanwhile this analysis system is suitable for all kinds of models
Mobile phone to be measured, provide optimum power consumption continuation of the journey optimization direction and strategy for various mobile phones to be measured.
A kind of mobile phone power saving power consumption analysis method, method includes the following steps:
The mobile phone parameters of mobile phone to be measured and mark post mobile phone are set as same or similar;
Quiescent dissipation parameter is read by the file node of mobile phone to be measured and mark post mobile phone, software interface, configuration file, it will be important
The quiescent dissipation parameter tags of attribute are colored font;
Quiescent dissipation parametric classification is stored into Excel table and is showed;
The title of mobile phone to be measured with the interface corresponding programme of mark post mobile phone and corresponding interface is acquired, dynamic power consumption parameter is chosen and is set
Determine the threshold value of the dynamic power consumption parameter of important attribute;
Timing acquiring mobile phone to be measured and mark post mobile phone enter the dynamic power consumption parameter behind different interfaces, and with the file of Log format
It is saved;
Dynamic power consumption parameter is shown in the form of suspended window, and will exceed the dynamic power consumption parameter mark of the important attribute of threshold value
It is denoted as colored font and a period of time is maintained to show.
Mobile telephone power consumption analysis method of the invention, in the mobile phone parameters of the mobile phone parameters and mark post mobile phone that reach mobile phone to be measured
Under the premise of same or similar, by acquisition, the display to quiescent dissipation parameter and dynamic power consumption parameter, treat analysis personnel
The power consumption for surveying mobile phone and mark post mobile phone realizes comprehensive analysis, accurately finds out mobile phone to be measured and mark post hand convenient for analysis personnel
The difference of machine, the advantages of taking mark post mobile phone, then targetedly the defect of mobile phone to be measured is improved, to promote mobile phone to be measured
Performance.
Specific embodiment
Below in conjunction with the attached drawing in the present invention, technical solution in the embodiment of the present invention carry out it is clear, completely retouch
It states, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the present invention
In embodiment, those skilled in the art's all other reality obtained without making creative work
Example is applied, protection scope of the present invention is belonged to.
As shown in Figure 1, the embodiment of the present invention provides a kind of mobile telephone power consumption analysis system, including power consumption static parameter analyzes mould
Block 1, power consumption dynamic parameter analysis module 2, power consumption parameter setup module 3, in which: power consumption static parameter analysis module 1 is for reading
The quiescent dissipation parameter of mobile phone to be measured Yu mark post mobile phone is taken, and by quiescent dissipation parameter difference classification storage into Excel table
Showed;Power consumption dynamic parameter analysis module 2 is for acquiring mobile phone to be measured and the interface corresponding programme of mark post mobile phone and corresponding
The title at interface, and record mobile phone and mark post mobile phone to be measured respectively and enter the dynamic power consumption parameter behind different interfaces, with suspended window
Form be shown;Power consumption parameter setup module 3 is used to join the mobile phone for influencing quiescent dissipation parameter and dynamic power consumption parameter
Number is adjusted, identical as the mobile phone parameters of mark post mobile phone with the mobile phone parameters for reaching mobile phone to be measured.Power consumption in the present embodiment
By quiescent dissipation parameter, classification storage is convenient for staff to export, check to static parameter analysis module 1 into Excel table respectively
And comparison.Power consumption dynamic parameter analysis module 2 joins mobile phone to be measured from dynamic power of the mark post mobile phone when entering different interfaces
Number is recorded, and the displaying of suspended window form is also convenient for staff and checks.Power consumption parameter setup module 3 adjusts mobile phone parameters
It is whole, keep same or similar with the mobile phone parameters of mark post mobile phone as far as possible, it so can be by mobile phone to be measured and mark post mobile phone
Power consumption situation carries out the comparison of more uniformity, facilitates the design advantage of extraction mark post mobile phone to improve the property of mobile phone to be measured
Energy.
Specifically, the quiescent dissipation parameter in the present embodiment includes CPU architecture information, CPU platform information, CPU Working mould
Formula, CPU minimum frequency of operation, CPU maximum operation frequency, CPU core number, CPU digit, cpu frequency voltage allocation list, CPU scene
Configuration information, screen resolution, screen density, cpu frequency voltage allocation list, battery capacity, system information, is taken the photograph screen size
As the partial parameters or whole parameter in head portrait element, province's electrical properties.System information therein may include system version, ROM size,
RAM size etc.;Camera pixel may include front camera pixel and rear camera pixel;Saving electrical properties may include whether out
AAL is opened, Doze mode whether is opened, whether opens it is waken up.It is more accurate for the quiescent dissipation analysis to mobile phone, then it answers
Selection quiescent dissipation parameter as much as possible in above quiescent dissipation parameter, has some pairs of mobile phone quiescent dissipations to be affected,
It can be used as the quiescent dissipation parameter of important attribute, so power consumption static parameter analysis module is to the important attribute in Excel table
Quiescent dissipation parameter be marked, in order to which staff targetedly checks analysis.Important attribute is quiet in the present embodiment
State power consumption parameter can be CPU maximum operation frequency, CPU core number, cpu frequency voltage allocation list, screen size, battery capacity, province
In electrical properties whether the parameters such as unlatching AAL.For the division of quiescent dissipation parameter can from CPU, screen or GPU, battery information,
System information, camera pixel, province's electrical properties etc. carry out, and battery information includes battery capacity.For details, reference can be made to shown in table 1:
1 quiescent dissipation parameter of table
Selection of the present embodiment for mark post mobile phone the considerations of for quiescent dissipation parameter, should be held with CPU, screen size, battery
The parameters such as amount are main considerations, choose the mark post same or similar with the three of the above quiescent dissipation parameter of mobile phone to be measured
Mobile phone is preferred.Preferably, the power consumption static parameter analysis module 1 in the present embodiment is by the quiescent dissipation parameter of the above important attribute
It is marked, colored font can be used and intuitively shown, distinguished with realizing with the vision of other quiescent dissipation parameters, specifically
Font color can be red, green, blue purple etc. without limitation.
Specifically, power consumption static parameter analysis module 1 reads hand to be measured by file node, software interface, configuration file
The quiescent dissipation parameter of machine and mark post mobile phone.File node is read for example, mainly passing through to the relevant information of CPU, battery is believed
The reading of breath then passes through Java reflection mechanism.The embodiment of the present invention can also be other modes to the acquisition of power consumption static parameter, right
For those skilled in the art, as long as required power consumption static parameter can be obtained.
Specifically, the dynamic power consumption parameter of the embodiment of the present invention include CPU core number, CPU working frequency, cpu load rate,
GPU frame per second, GPU resolution ratio, GPU working frequency, cpu temperature, GPU temperature, battery temperature, mobile phone brightness, sound of mobile phone, network
Situation, mobile phone EMS memory, mobile phone free memory, battery capacity, battery load current, the partial parameters in cell voltage or complete
Portion's whole parameter.Wherein, the mobile phone brightness of display and sound of mobile phone are current value;Network condition includes downloading data, uploads
The parameters such as data, cellular signal strength, WiFi signal intensity;Mobile phone EMS memory is the free memory of hardware configuration;Mobile phone is available to be deposited
Storage space is the free memory of mobile phone at runtime, the free memory different from of size and mobile phone EMS memory.For to dynamic
State power consumption parameter has clearer displaying, it is preferred that power consumption dynamic parameter analysis module 2 also sets up the dynamic power consumption of important attribute
The threshold value of parameter, and reminded when the dynamic power consumption parameter of important attribute exceeds threshold value, important attribute in the present embodiment
Dynamic power consumption parameter can for cpu load rate, cpu temperature, GPU temperature, battery temperature, the cellular signal strength in network condition and
WiFi signal intensity, mobile phone EMS memory, mobile phone free memory etc., power consumption dynamic parameter analysis module 2 are provided with cpu load
Rate, cpu temperature, GPU temperature, battery temperature, network condition, mobile phone EMS memory, mobile phone free memory threshold value after, mobile phone fortune
If the above parameter exceeds given threshold when row, staff is reminded, for the set threshold value of dynamic power consumption parameter
The present embodiment is not specifically limited, such as: cpu temperature, GPU temperature, the threshold value of battery temperature are set as 40 degrees Celsius, mobile phone letter
The threshold value of number intensity is set as the half of signal lattice number, and those skilled in the art can be according to concrete analysis situation sets itself threshold
Value, does not repeat herein.The present embodiment does not do the dynamic power consumption parameter of important attribute beyond the mode reminded after threshold value
It limits, only needs can to cause the attention of staff, the form such as marked using colored font, the dynamic in the present embodiment
The marked color of power consumption parameter should be distinguished with the marked color of quiescent dissipation parameter in above embodiments.The present embodiment may be used also
The time reminded is set, such as 5 seconds, in 5 seconds after the dynamic power consumption parameter of important attribute exceeds threshold value, the partial font with
Setpoint color is shown, reverts to former font color later within 5 seconds.For the division of dynamic power consumption parameter can from CPU, GPU, temperature,
Mobile phone brightness, sound of mobile phone, network condition, mobile phone EMS memory, mobile phone free memory, battery etc. carry out, and for details, reference can be made to tables 2
It is shown:
2 dynamic power consumption parameter of table
2 core purpose of power consumption dynamic parameter analysis module in the present embodiment is to record mobile phone before and after entering different interfaces
The variation of dynamic power consumption parameter is to realize the analysis to mobile telephone power consumption.The mobile phone of early stage often passes through power saving management or saves electrically optimized
Mode carry out the control of mobile telephone power consumption, but these modes be all controlled under all scenes by mobile phone WIFI, GPRS, GPS,
The hardware switch such as brightness, CPU core number, cpu frequency or software setting are continued a journey with achieving the purpose that optimize power consumption, but with user
The requirement for experiencing comfort level is higher, and the optimization of power consumption continuation of the journey at present is intended to hold under scene-type power saving or machine learning different scenes
Row Different Strategies realize power saving.Such as in the temple escape game of scene of game, the welcome interface of beginning and finger is needed to slide
Jump interface in, welcome Interfacial Characteristics be interface for static and interactivity it is few, and be in interface of jumping picture constantly change with
Gesture interaction is frequent, when saving under electrically optimized mode, just can suitably turn static interfaces frame per second down, such as 50fps, dynamic circle
Face remains unchanged, such as 60fps, allows the resource rational utilization of system in this way, rather than integrated adjustment.In this way, mobile phone is sent out
Good improvement just can be obtained in the problem of heat and power consumption.Above it is found that the information about dynamic parameters under some interface of mobile phone is non-
It is often important, and these parameters are that user's naked eyes can not perceive, it is necessary to it is obtained in real time, and then realizes analysis.In order to allow point
Analysis personnel can intuitively see the variation of dynamic power consumption parameter of the mobile phone before and after entering different interfaces, pass through the shape of suspended window
Formula, and shown by timer periodic refreshing dynamic power consumption parameter, while being saved with the file of Log format, it is convenient for
The subsequent export of analysis personnel is checked.The effect of storage initial data can be improved using the preservation that Log format carries out file for the present embodiment
Rate, those skilled in the art also can be used extended formatting and save.
Specifically, mobile phone parameters may include CPU minimum work frequency in the power consumption parameter setup module 3 of the embodiment of the present invention
Rate, CPU maximum operation frequency, CPU core number, CPU operating mode, GPU frame per second, GPU resolution ratio, mobile phone brightness, sound of mobile phone, hand
Partial parameters or whole parameters in the cleaning of machine memory.Preferably, power consumption parameter setup module 3 is carried out in part mobile phone parameters
When adjustment, first judge whether the mobile phone is root, if so, being adjusted, if it is not, can not then be adjusted.The present embodiment
Based on debugging to mobile phone parameters, analysis personnel can also carry out mobile phone the purpose that power consumption parameter setup module 3 is realized
The recovery of mobile phone parameters is realized in One-key recovery or the operation restarted.The division of the mobile phone parameters of the present embodiment can from CPU, GPU,
Mobile phone brightness, sound of mobile phone, mobile phone EMS memory cleaning etc. carry out, and for details, reference can be made to shown in table 3:
3 mobile phone parameters of table
The core purpose of the power consumption parameter setup module 3 of the present embodiment is to realize to influence quiescent dissipation parameter and dynamic power consumption
The mobile phone parameters of parameter are adjusted, such as GPU frame per second of the mobile phone to be measured with mark post mobile phone in identical interface is respectively
The GPU frame per second of mobile phone to be measured is adjusted to 50fps by 60fps and 50fps, keeps identical as mark post mobile phone, then carry out power consumption point
Analysis is then easier to find the difference of mobile phone to be measured Yu mark post mobile phone.
In the mobile telephone power consumption analysis system of the embodiment of the present invention, power consumption static parameter analysis module reads mobile phone to be measured and mark
The quiescent dissipation parameter of bar mobile phone, and classification storage shows into Excel table respectively by quiescent dissipation parameter;Power consumption is dynamic
State Parameter analysis module acquires the title of mobile phone to be measured with the interface corresponding programme of mark post mobile phone and corresponding interface, and records respectively
Mobile phone and mark post mobile phone to be measured enters the dynamic power consumption parameter behind different interfaces, is shown in the form of suspended window;Power consumption ginseng
Number setup module is adjusted the mobile phone parameters for influencing quiescent dissipation parameter and dynamic power consumption parameter, to reach mobile phone to be measured
Mobile phone parameters are identical as the mobile phone parameters of mark post mobile phone;Pass through power consumption static parameter analysis module, power consumption dynamic parameter analysis mould
The combination of block and power consumption parameter setup module makes analysis personnel realize comprehensive point to the power consumption of mobile phone to be measured and mark post mobile phone
Analysis, the advantages of the difference of mobile phone to be measured Yu mark post mobile phone is accurately found out convenient for analysis personnel, takes mark post mobile phone, then specific aim
The defect of mobile phone to be measured is improved, to promote the performance of mobile phone to be measured;Meanwhile this analysis system is suitable for all kinds of models
Mobile phone to be measured, provide optimum power consumption continuation of the journey optimization direction and strategy for various mobile phones to be measured.
The present invention also provides a kind of mobile phone power saving power consumption analysis method, as shown in Fig. 2, method the following steps are included:
S101: the mobile phone parameters of mobile phone to be measured and mark post mobile phone are set as same or similar.By hand to be measured in the present embodiment
It is in order in the energy consumption for comparing mobile phone and mark post mobile phone to be measured that the mobile phone parameters of machine and mark post mobile phone, which are set as same or similar,
When, it is available more accurately as a result, during the selection of mark post mobile phone, it should also to choose and join with the mobile phone of mobile phone to be measured
Number is identical or what is be closer to analyze.Mobile phone parameters in the present embodiment can be maximum for CPU minimum frequency of operation, CPU
Working frequency, CPU core number, CPU operating mode, GPU frame per second, GPU resolution ratio, mobile phone brightness, sound of mobile phone, mobile phone EMS memory cleaning
In partial parameters or whole parameter, when concrete analysis, selected mobile phone parameters the present embodiment did not did specific restriction.
S102: quiescent dissipation ginseng is read by the file node of mobile phone to be measured and mark post mobile phone, software interface, configuration file
The quiescent dissipation parameter tags of important attribute are colored font by number.It can also be from mobile phone to be measured in the analysis method of the present embodiment
Obtain quiescent dissipation parameter with the alternative document or interface of mark post mobile phone, quiescent dissipation parameter can for CPU architecture information,
CPU platform information, CPU operating mode, CPU minimum frequency of operation, CPU maximum operation frequency, CPU core number, CPU digit, CPU frequency
Rate voltage allocation list, CPU scene configuration information, screen size, screen resolution, screen density, cpu frequency voltage allocation list,
Battery capacity, system information, camera pixel, the partial parameters in province's electrical properties or whole parameters are specific to select according to specific
Scene is analyzed, the present embodiment is herein without limitation.The present embodiment can be by CPU maximum operation frequency, CPU core number, cpu frequency voltage
Allocation list, battery capacity, saves in electrical properties whether open quiescent dissipation of the parameters such as AAL as important attribute at screen size
Parameter, marker color are not specifically limited, and can be red, green, blue etc..
S103: quiescent dissipation parametric classification is stored into Excel table and is showed.The present embodiment joins quiescent dissipation
Number, which is stored into Excel table, checks analysis convenient for analysis personnel.
S104: acquiring the title of mobile phone to be measured with the interface corresponding programme of mark post mobile phone and corresponding interface, chooses dynamic function
It consumes parameter and sets the threshold value of the dynamic power consumption parameter of important attribute.The present embodiment is to the mobile phone to be measured and mark post hand for participating in analysis
Program name and type on machine are not specifically limited, dynamic power consumption parameter CPU core number, CPU working frequency in the present embodiment,
Cpu load rate, GPU frame per second, GPU resolution ratio, GPU working frequency, cpu temperature, GPU temperature, battery temperature, mobile phone brightness, hand
Machine sound, network condition, mobile phone EMS memory, mobile phone free memory, battery capacity, battery load current, in cell voltage
Partial parameters or all whole parameters, cpu load rate therein, cpu temperature, GPU temperature, battery temperature, in network condition
Cellular signal strength and WiFi signal intensity, mobile phone EMS memory, mobile phone free memory etc. may be configured as the dynamic of important attribute
Power consumption parameter, and set the threshold value of the dynamic power consumption parameter of important attribute.
S105: timing acquiring mobile phone to be measured and mark post mobile phone enter the dynamic power consumption parameter behind different interfaces, and with Log lattice
The file of formula is saved.It can be 1 second that the dynamic power consumption parameter fixed time is acquired in the present embodiment, in mobile phone to be measured and mark post
When mobile phone is run at the same time, dynamic power consumption parameter of the acquisition both of the above per second after entering different interfaces, while being saved.
The present embodiment is not specifically limited the format of the file of preservation, preferably Log format, and the preservation of Log formatted file can be improved
The efficiency of initial data is stored, the also settable extended formatting of analysis personnel saves, herein without limitation.
S106: dynamic power consumption parameter is shown in the form of suspended window, and will exceed the dynamic of the important attribute of threshold value
Power consumption parameter is labeled as colored font and a period of time is maintained to show.By the displaying of suspended window form, analysis people is easily facilitated
Member can be with open-and-shut observation analysis, while carrying out colored font to the dynamic power consumption parameter of the important attribute beyond threshold value
Label can be labeled as red, green, blue, yellow etc., but must distinguish with the color of the quiescent dissipation parameter of label.It will
The dynamic power consumption parameter of important attribute beyond threshold value maintains certain time to be shown, it is ensured that and analysis personnel are able to observe that,
The present embodiment maintains the time shown without limitation to the parameter, can be 2 seconds, 3 seconds or 5 seconds etc..
The mobile phone power saving power consumption analysis system institute of the mobile phone power saving power consumption analysis method of the present embodiment, the above embodiment is public
The content opened carries out auxiliary implementation, and detail the present embodiment does not repeat them here here.
The mobile phone power saving power consumption analysis method of the embodiment of the present invention, in the mobile phone parameters and mark post mobile phone for reaching mobile phone to be measured
Mobile phone parameters it is same or similar under the premise of, by acquisition to quiescent dissipation parameter and dynamic power consumption parameter, display, make point
Analysis personnel realize comprehensive analysis to the power consumption of mobile phone to be measured and mark post mobile phone, accurately find out hand to be measured convenient for analysis personnel
The difference of machine and mark post mobile phone, the advantages of taking mark post mobile phone, then targetedly the defect of mobile phone to be measured is improved, to mention
Rise the cruising ability of mobile phone to be measured.
The present invention is further described by specific embodiment above, it should be understood that, here specifically
Description, should not be construed as the restriction for the essence of the present invention with range, and one of ordinary skilled in the art is reading this explanation
The various modifications made after book to above-described embodiment belong to the range that the present invention is protected.