CN106557397A - Method and device for comparing power consumption of application program package and terminal - Google Patents

Method and device for comparing power consumption of application program package and terminal Download PDF

Info

Publication number
CN106557397A
CN106557397A CN201510627757.8A CN201510627757A CN106557397A CN 106557397 A CN106557397 A CN 106557397A CN 201510627757 A CN201510627757 A CN 201510627757A CN 106557397 A CN106557397 A CN 106557397A
Authority
CN
China
Prior art keywords
screen locking
power consumption
time period
electronic equipment
stopping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510627757.8A
Other languages
Chinese (zh)
Other versions
CN106557397B (en
Inventor
闫泳杉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510627757.8A priority Critical patent/CN106557397B/en
Publication of CN106557397A publication Critical patent/CN106557397A/en
Application granted granted Critical
Publication of CN106557397B publication Critical patent/CN106557397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a method, a device and a terminal for comparing power consumption of application packages. The method comprises the following steps: acquiring the number of application program packages which are respectively operated by each electronic device in a preset screen locking time period before and after package stopping; acquiring screen locking power consumption information of the electronic equipment with the same package stopping number in the preset screen locking time period before and after package stopping; and calculating the screen locking power consumption optimization value of the electronic equipment with the same packet stop number according to the acquired screen locking power consumption information of the electronic equipment with the same packet stop number in the preset screen locking time period before and after packet stop. By applying the invention, the packet stopping efficiency of the user can be improved, and the power saving efficiency of the electronic equipment can be optimized.

Description

A kind of method of application package power consumption contrast, device and terminal
Technical field
The present invention relates to computer power-saving technology, more particularly to a kind of application package power consumption contrast method, Device and terminal.
Background technology
With the development of communication technology, the application package installed in electronic equipment is more and more, its function It is stronger and stronger, great convenience is brought to user.For example, the application journey installed in existing electronic equipment Sequence bag is included but is not limited to:Chat social tool, game tool, video text editing instrument, online payment tool, Disk Cleanup instrument, virus prevention instrument, global location instrument, camera application instrument etc., can almost make User stays indoors, and just can realize that the institute in daily life and work is functional.
With the continuous upgrading that user is experienced to electronic equipment, user does not require nothing more than electronic equipment and can provide to the greatest extent Application function more than possible, also requires that electronic equipment has endurance as long as possible.And in electronic equipment The numerous application packages installed operationally, need to consume substantial amounts of electric energy so that many of electronic equipment should Can not be taken into account with endurance with function.
It is in prior art, more constant in electric device battery power supply capacity, do not consider to be optimized battery In the case of design, in order to reduce the power consumption of electronic equipment, user or user are usually pointed out according to long-term Using the experience of electronic equipment, when electronic equipment is in holding state or use state, for running background Some inessential application package, i.e. users no longer need the inessential application package for using, arranging should Inessential application package is unactivated state, i.e., the inessential application package is carried out stopping bag process, from And such power consumption of the inessential application package in holding state or use state can be effectively reduced, it is real The energy saving optimizing of existing electronic equipment.
But should be by performing predetermined power saving optimisation strategy, the application package for arranging running background is inactive shape State, the method so as to realize the reduction of electronic equipment power consumption, due to setting according to electronics after bag before processing is stopped Standby power consumption relevant information, quantifies electricity-saving function index so as to draw the electrically optimized situation of province so that user does not have Direct feel to stopping the concrete province's information about power before and after wrapping, it is not strong to stop bag idea, and it is inefficient to stop bag, leads Cause electronic equipment power saving optimization efficiency relatively low.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method of application package power consumption contrast, device and end End, lifts user and stops bag efficiency, optimization electronic equipment power saving efficiency.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of method of application package power consumption contrast, including:
Obtain the application journey that each electronic equipment before and after stopping wrapping is run within the screen locking time period for pre-setting respectively Sequence bag number;
Obtain the screen locking time period that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Interior screen locking power consumption information;
According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.
Alternatively, the screen locking time period for pre-setting include:Stop wrap before the first screen locking time period and Stop the second screen locking time period after wrapping;Each electronic equipment before and after the acquisition stops wrapping is being pre-set respectively In the screen locking time period, the application package number of operation includes:
Arrange the electronic equipment of predetermined quantity arrange stop wrapping before the first screen locking time period in running background the The application package of one threshold value;
The electronic equipment of the predetermined quantity the second threshold of running background within the second screen locking time period for arranging is set The application package of value, application package and the first threshold of operation of the Second Threshold of operation Application package be comprising with the relation for being included.
Alternatively, the screen locking time period for pre-setting include:Stop wrap before the first screen locking time period and Stop the second screen locking time period after wrapping;Each electronic equipment before and after the acquisition stops wrapping is being pre-set respectively In the screen locking time period, the application package number of operation includes:
Extract the first quantity of electronic equipment application package of running background within the first screen locking time period;
Extract the second number of electronic equipment application package of running background within the second screen locking time period Amount;
If the application package of the application package of the first quantity and the second quantity be comprising with the pass for being included System;
By the application package of the first quantity in the first screen locking time period and in the second screen locking time period Each electronic equipment before and after the application package of two quantity stops wrapping respectively as the acquisition is being pre-set respectively The screen locking time period in operation application package number.
Alternatively, the screen locking power consumption information includes screen locking power consumption, and the acquisition has the identical bag number that stops The screen locking power consumption information in the screen locking time period that electronic equipment is pre-set described in before stopping wrapping includes:
According to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
Obtain j-th and stop i-th electronic equipment of steamed bun apoplexy due to endogenous wind the first of the first screen locking time period sart point in time Dump energy, wherein, j, i are natural number;
Obtain second dump energy of i-th electronic equipment in the first end time screen locking time period point;
The difference of the first dump energy and the second dump energy is calculated, and i-th electronic equipment is obtained first Screen locking power consumption in the screen locking time period;
Stopping screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th is carried out Sum-average arithmetic, obtains described j-th and stops in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping Screen locking power consumption information.
Alternatively, the screen locking time for stopping that steamed bun class is pre-set described in before stopping wrapping for j-th is calculated using following formula Screen locking power consumption information in section:
In formula,
J be divide stop steamed bun class number;
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj1iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period for j-th Breath;
N is j-th stops the electronic equipment number that steamed bun apoplexy due to endogenous wind is included.
Alternatively, in the difference for calculating the first dump energy and the second dump energy, obtain described i-th Individual electronic equipment is after the screen locking power consumption in the first screen locking time period;Stop each electricity of steamed bun apoplexy due to endogenous wind to j-th , before the screen locking power consumption in the first screen locking time period carries out sum-average arithmetic, methods described is further for sub- equipment Including:
Whether the screen locking power consumption for obtaining is judged beyond the threshold range for pre-setting, if it is, deleting the lock Screen power consumption.
Alternatively, the screen locking power consumption information includes screen locking power consumption speed, and the acquisition has and identical stops bag number Electronic equipment screen locking time period for pre-setting described in before stopping wrapping in screen locking power consumption information include:
According to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
Obtain j-th and stop i-th electronic equipment of steamed bun apoplexy due to endogenous wind the first of the first screen locking time period sart point in time Dump energy, wherein, j, i are natural number;
Obtain second dump energy of i-th electronic equipment in the first end time screen locking time period point;
The difference of the first dump energy and the second dump energy is calculated, and i-th electronic equipment is obtained first Screen locking power consumption in the screen locking time period;
Stopping screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th is carried out Sum-average arithmetic;
The business of the value that obtains of sum-average arithmetic and the first screen locking time period is calculated, obtains described j-th and stop steamed bun class existing The screen locking power consumption speed in the screen locking time period for pre-setting before stopping wrapping.
Alternatively, it is described according to the institute with the identical electronic equipment for stopping bag number before and after stopping wrapping for obtaining The screen locking power consumption information in the screen locking time period for pre-setting is stated, calculates described with the identical electronics for stopping bag number The screen locking power consumption optimal value of equipment includes:
Calculating stops the screen locking power consumption in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping for j-th Information and the screen locking power consumption stopped for j-th in the screen locking time period that steamed bun class is pre-set described in after stopping wrapping are believed The difference of breath;
By difference divided by stop for described j-th steamed bun class before stopping wrapping described in screen locking time period for pre-setting Screen locking power consumption information, the screen locking power consumption optimal value of the electronic equipment for obtaining stopping steamed bun class described j-th.
Alternatively, stop the screen locking power consumption optimal value of the electronic equipment of steamed bun class using following formula calculating for described j-th:
In formula,
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj2For stop for j-th steamed bun class after stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information.
Alternatively, methods described is further included:
Using have described in obtaining the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information and predetermined credibility in the screen locking time period, calculates and described has the identical bag number that stops The screen locking power consumption information credibility interval of electronic equipment;
The screen locking power consumption information credibility interval is divided into into multiple credible sons according to the partition strategy for pre-setting Interval, calculates the son in screen locking time period of the electronic equipment being included in each credible subinterval before stopping wrapping Interval screen locking power consumption information and the subinterval screen locking power consumption information in the screen locking time period after stopping wrapping;
According to the subinterval lock in screen locking time period of the electronic equipment in the credible subinterval for calculating before stopping wrapping The subinterval screen locking power consumption information in the screen locking time period after shielding power consumption information and stopping wrapping, obtains described credible The screen locking power consumption contrast optimal value in subinterval.
Alternatively, it is described using the institute with the identical electronic equipment for stopping bag number before and after stopping wrapping for obtaining State the screen locking power consumption information and predetermined credibility in the screen locking time period for pre-setting, calculate described in have The screen locking power consumption information credibility interval of the identical electronic equipment for stopping bag number includes:
Calculate described with screen locking power consumption information of the identical electronic equipment for stopping bag number within the first screen locking time period With the screen locking power consumption information difference of the screen locking power consumption information in the second screen locking time period;
The calculated screen locking power consumption information difference with the identical electronic equipment for stopping bag number is asked With it is average, obtain screen locking power consumption information average;
According to the screen locking power consumption information difference and the screen locking power consumption information average, screen locking power consumption letter is calculated Breath variance, with the screen locking power consumption information average and screen locking power consumption information variance mark screen locking power consumption letter Breath credibility interval.
The method of application package power consumption contrast provided in an embodiment of the present invention, it is each before and after stopping wrapping by obtaining The application package number that electronic equipment is run within the screen locking time period for pre-setting respectively;Obtain with identical Stop the screen locking power consumption letter in the screen locking time period that the electronic equipment of bag number is pre-set described in before and after stopping wrapping Breath;According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.So, directly displaying for optimal value is contrasted by screen locking power consumption, user is enabled to difference Stop the concrete province's information about power before and after bag number stops wrapping and there is direct feel, user is lifted to inessential application program The bag that stops of bag is realized, and lifts electronic equipment power saving optimization efficiency.
On the other hand, the embodiment of the present invention provides a kind of device of application package power consumption contrast, including:Stop Bag number acquisition module, screen locking power consumption data obtaining module and screen locking power consumption optimal value computing module, wherein,
Stop bag number acquisition module, for each electronic equipment before and after stopping wrapping being obtained respectively in the screen locking for pre-setting The application package number of operation in time period;
Screen locking power consumption data obtaining module, for obtaining with the identical electronic equipment for stopping bag number before and after bag is stopped The screen locking time period for pre-setting in screen locking power consumption information;
Screen locking power consumption optimal value computing module, for setting with the identical electronics for stopping bag number according to described in acquisition Screen locking power consumption information in the standby screen locking time period pre-set described in before and after stopping wrapping, calculate described in have The screen locking power consumption optimal value of the identical electronic equipment for stopping bag number.
Alternatively, the bag number acquisition module that stops includes:First screen locking time period stop bag number acquiring unit and Second screen locking time period stopped bag number acquiring unit, wherein,
First screen locking time period stopped bag number acquiring unit, for arranging the electronic equipment of predetermined quantity in setting The application package of running background first threshold in the first screen locking time period before stopping wrapping;
Second screen locking time period stopped bag number acquiring unit, was setting for arranging the electronic equipment of the predetermined quantity The application package of running background Second Threshold, the Second Threshold of operation in the second screen locking time period put Application package with operation the first threshold application package be comprising with the relation for being included.
Alternatively, the bag number acquisition module that stops includes:First extraction unit, the second extraction unit and sentence Disconnected processing unit, wherein,
First extraction unit, for extracting the application journey of electronic equipment running background within the first screen locking time period First quantity of sequence bag;
Second extraction unit, for extract the electronic equipment within the second screen locking time period running background should With the second quantity of program bag;
Judge processing unit, if the application package of the application package of the first quantity and the second quantity is bag Containing with the relation for being included, by the application package of the first quantity in the first screen locking time period and second lock The application package of the second quantity in the screen time period stops each electronic equipment before and after bag respectively as the acquisition The application package number for running within the screen locking time period for pre-setting respectively.
Alternatively, the screen locking power consumption data obtaining module includes:Subclass division unit, the first dump energy Acquiring unit, the second dump energy acquiring unit, screen locking power consumption computing unit and screen locking power consumption information meter Unit is calculated, wherein,
Subclass division unit, for according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
First dump energy acquiring unit, stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind first for obtaining j-th First dump energy of screen locking time period sart point in time, wherein, j, i are natural number;
Second dump energy acquiring unit, ties in the first screen locking time period for obtaining i-th electronic equipment Second dump energy of beam time point;
Screen locking power consumption computing unit, for calculating the difference of the first dump energy and the second dump energy, obtains To screen locking power consumption of i-th electronic equipment within the first screen locking time period;
Screen locking power consumption information calculating unit, for stopping each electronic equipment of steamed bun apoplexy due to endogenous wind to j-th in the first screen locking Screen locking power consumption in time period carries out sum-average arithmetic, obtains stopping for described j-th steamed bun class described in before bag is stopped Screen locking power consumption information in the screen locking time period for pre-setting.
Alternatively, the screen locking time for stopping that steamed bun class is pre-set described in before stopping wrapping for j-th is calculated using following formula Screen locking power consumption information in section:
In formula,
J be divide stop steamed bun class number;
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj1iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period for j-th Breath;
N is j-th stops the electronic equipment number that steamed bun apoplexy due to endogenous wind is included.
Alternatively, the screen locking power consumption data obtaining module is further included:
Screen locking power consumption judging unit, for judging the screen locking power consumption for obtaining whether beyond the threshold for pre-setting Value scope, if it is, deleting the screen locking power consumption.
Alternatively, the screen locking power consumption data obtaining module includes:Subclass division unit, the first dump energy Acquiring unit, the second dump energy acquiring unit, screen locking power consumption computing unit, average calculation unit with And screen locking power consumption rate calculation unit, wherein,
Subclass division unit, for according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
First dump energy acquiring unit, stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind first for obtaining j-th First dump energy of screen locking time period sart point in time, wherein, j, i are natural number;
Second dump energy acquiring unit, ties in the first screen locking time period for obtaining i-th electronic equipment Second dump energy of beam time point;
Screen locking power consumption computing unit, for calculating the difference of the first dump energy and the second dump energy, obtains To screen locking power consumption of i-th electronic equipment within the first screen locking time period;
Average calculation unit, for stopping each electronic equipment of steamed bun apoplexy due to endogenous wind to j-th in the first screen locking time period Interior screen locking power consumption carries out sum-average arithmetic;
Screen locking power consumption rate calculation unit, for calculating value and the first screen locking time period that sum-average arithmetic is obtained Business, obtains stopping the screen locking consumption in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping for described j-th Electric speed.
Alternatively, the screen locking power consumption optimal value computing module includes:Screen locking power consumption information difference computing unit And screen locking power consumption optimal value computing unit, wherein,
Screen locking power consumption information difference computing unit, stops steamed bun class for j-th for calculating described advance before stopping wrapping Screen locking power consumption information in the screen locking time period of setting is set in advance with described after stopping wrapping of steamed bun class is stopped for j-th The difference of the screen locking power consumption information in the screen locking time period put;
Screen locking power consumption optimal value computing unit, for by difference divided by stopping steamed bun class for described j-th before bag is stopped Screen locking power consumption information in the screen locking time period for pre-setting, obtains stopping the electronics of steamed bun class for described j-th The screen locking power consumption optimal value of equipment.
Alternatively, stop the screen locking power consumption optimal value of the electronic equipment of steamed bun class using following formula calculating for described j-th:
In formula,
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj2For stop for j-th steamed bun class after stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information.
Alternatively, described device is further included:Credibility interval computing module, subinterval division module and Subinterval optimal value computing module, wherein,
Credibility interval computing module, for stopping with the identical electronic equipment for stopping bag number using described in acquisition The screen locking power consumption information in the screen locking time period for pre-setting and predetermined credibility before and after bag, meter Calculate the screen locking power consumption information credibility interval with the identical electronic equipment for stopping bag number;
Subinterval division module, for will be the screen locking power consumption information credible according to the partition strategy for pre-setting Interval division is multiple credible subintervals, calculates the electronic equipment being included in each credible subinterval and is stopping bag Subinterval screen locking power consumption information in the front screen locking time period and the sub-district in the screen locking time period after stopping wrapping Between screen locking power consumption information;
Subinterval optimal value computing module, for stopping bag according to the electronic equipment in the credible subinterval for calculating Subinterval screen locking power consumption information in the front screen locking time period and the subinterval in the screen locking time period after stopping wrapping Screen locking power consumption information, obtains the screen locking power consumption contrast optimal value in the credible subinterval.
Alternatively, the credibility interval computing module includes:First computing unit, the second computing unit and 3rd computing unit, wherein,
First computing unit, for calculating with the identical electronic equipment for stopping bag number within the first screen locking time period Screen locking power consumption information and the second screen locking time period in screen locking power consumption information screen locking power consumption information difference;
Second computing unit, for the calculated screen locking with the identical electronic equipment for stopping bag number Power consumption information difference carries out sum-average arithmetic, obtains screen locking power consumption information average;
3rd computing unit, for equal according to the screen locking power consumption information difference and the screen locking power consumption information Value, calculates screen locking power consumption information variance, with the screen locking power consumption information average and the screen locking power consumption information Variance mark screen locking power consumption information credibility interval.
A kind of terminal, including:
One or more processor;
Memorizer;
One or more module, one or more of module stores in which memory, when by institute Proceed as follows when stating one or more computing device:
Obtain the application journey that each electronic equipment before and after stopping wrapping is run within the screen locking time period for pre-setting respectively Sequence bag number;
Obtain the screen locking time period that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Interior screen locking power consumption information;
According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.
The device of application package power consumption contrast provided in an embodiment of the present invention, stops the acquisition of bag number acquisition module and stops The application package number that each electronic equipment before and after bag is run within the screen locking time period for pre-setting respectively;Lock Screen power consumption data obtaining module obtains corresponding screen locking power consumption information;Screen locking power consumption optimal value computing module foundation The screen locking power consumption information of acquisition, calculates the screen locking power consumption optimal value with the identical electronic equipment for stopping bag number. So, optimal value is contrasted by screen locking power consumption directly displaying, enable to user and stop difference bag number stop bag Concrete province's information about power in front and back has a direct feel, lifts user and stops Bao Yi to inessential application package Know, lift electronic equipment power saving optimization efficiency.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to implementing Example or accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention application package power consumption contrast;
Fig. 2 be the embodiment of the present invention one obtain stop wrap before and after each electronic equipment respectively in the screen locking for pre-setting The schematic flow sheet of the application package number of operation in time period;
Fig. 3 be the embodiment of the present invention two obtain stop wrap before and after each electronic equipment respectively in the screen locking for pre-setting The schematic flow sheet of the application package number of operation in time period;
Fig. 4 is that the statistics of the embodiment of the present invention three is described pre- before stopping wrapping with the identical electronic equipment for stopping bag number The schematic flow sheet of the screen locking power consumption information in the screen locking time period for first arranging;
Fig. 5 is that the statistics of the embodiment of the present invention four is described pre- before stopping wrapping with the identical electronic equipment for stopping bag number The schematic flow sheet of the screen locking power consumption information in the screen locking time period for first arranging;
Fig. 6 is the apparatus structure schematic diagram of embodiment of the present invention application package power consumption contrast;
Fig. 7 stops the first structure schematic diagram of bag number acquisition module for the embodiment of the present invention;
Fig. 8 stops the second structural representation of bag number acquisition module for the embodiment of the present invention;
First structure schematic diagrams of the Fig. 9 for embodiment of the present invention screen locking power consumption data obtaining module;
Second structural representations of the Figure 10 for embodiment of the present invention screen locking power consumption data obtaining module;
Terminal structure schematic diagrams of the Figure 11 for the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than the reality of whole Apply example.Based on the embodiment in the present invention, those of ordinary skill in the art are not before creative work is made The all other embodiment for being obtained is put, the scope of protection of the invention is belonged to.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention application package power consumption contrast.Referring to Fig. 1, should Method includes:
Step 101, each electronic equipment before and after acquisition stops wrapping are run within the screen locking time period for pre-setting respectively Application package number;
In this step, as within the non-screen locking time period, user may enter line activating to application package at random Or inactive (stopping bag) is processed, thus, in order to avoid user actively carries out stopping package operation to application package Caused subjective sexual deviation, in the embodiment of the present invention, is arranged in the screen locking time period and performs the embodiment of the present invention The method of application package power consumption contrast.
In the embodiment of the present invention, the screen locking time period for pre-setting includes:Stop the first screen locking time period before wrapping And stop the second screen locking time period after wrapping.Wherein, the first screen locking time period and the second screen locking time period can be with It is the screen locking time period of adjacent screen locking time period, or interruption.Certainly, in practical application, in advance The screen locking time period of setting can further include multiple time periods such as the 3rd screen locking time period after stopping wrapping.
Fig. 2 be the embodiment of the present invention one obtain stop wrap before and after each electronic equipment respectively in the screen locking for pre-setting The schematic flow sheet of the application package number of operation in time period.Referring to Fig. 2, the flow process includes:
A1, arrange predetermined quantity electronic equipment arrange stop wrap before the first screen locking time period in backstage fortune The application package of row first threshold;
In this step, within the first screen locking time period, user does not carry out stopping bag process, electronics to electronic equipment Equipment runs the application package of first threshold within the first screen locking time period.As an alternative embodiment, the One screen locking time period could be arranged to one week or one week less than one week.
In the embodiment of the present invention, can according to be actually needed arrange electronic equipment predetermined quantity, be more than or wait In 1 natural number.It is preferred that the follow-up calculating calculated needed for screen locking power consumption information can be considered Sample number needed for resource and result of calculation credibility is arranging predetermined quantity.
A2, arranges the electronic equipment of the predetermined quantity running background the within the second screen locking time period for arranging The application package of two threshold values, the application package of the Second Threshold of operation and first threshold of operation The application package of value be comprising with the relation for being included.
In this step, the application package of Second Threshold can be one in the application package of first threshold Point, the application package of first threshold can also be the part in the application package of Second Threshold.Preferably Ground, first threshold and Second Threshold.
Fig. 3 be the embodiment of the present invention two obtain stop wrap before and after each electronic equipment respectively in the screen locking for pre-setting The schematic flow sheet of the application package number of operation in time period.Referring to Fig. 3, the flow process includes:
B1, extracts the first quantity of electronic equipment application package of running background within the first screen locking time period;
B2, extract the electronic equipment within the second screen locking time period the application package of running background second Quantity;
B3, if the application package of the application package of the first quantity and the second quantity be comprising with included Relation;
In this step, the application package of the application package of the first quantity and the second quantity be comprising with wrapped The relation for containing includes:Include the application package of the second quantity in the application package of the first quantity, or, Include the application package of the first quantity in the application package of the second quantity.
B4, by the application package of the first quantity in the first screen locking time period and in the second screen locking time period The second quantity application package respectively as it is described acquisition stop wrap before and after each electronic equipment respectively advance The application package number of operation in the screen locking time period of setting.
In the embodiment of the present invention, for an electronic equipment, if within the first screen locking time period, running background Application package be 10, within the second screen locking time period, the application package of running background is 10 In 8, then stop bag number for 2.For another electronic equipment, if within the first screen locking time period, backstage The application package of operation is 10, and within the second screen locking time period, the application package of running background is 10 5 in individual, then stop bag number for 5.
In the embodiment of the present invention, it is preferred that after bag is stopped, immediately entering screen locking.That is, during screen locking Between distance stop that the bag time is nearer, data can more more illustrate the power saving effect for stopping band, be spaced more long, stop bag The probability for actively restarting application package due to user afterwards is bigger, stops bag effect and is then used by the active of user Reduction.
Step 102, obtains the lock that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Screen locking power consumption information in the screen time period;
In this step, used as an alternative embodiment, screen locking power consumption information is included but is not limited to:Screen locking power consumption And screen locking power consumption speed.
The screen locking power consumption letter in the screen locking time period for pre-setting in the embodiment of the present invention, before and after stopping wrapping Breath includes:Screen locking power consumption information in first screen locking time period and the screen locking power consumption in the second screen locking time period Information, wherein, the screen locking power consumption information in the first screen locking time period is the screen locking consumption of the electronic equipment before stopping wrapping Electrical information, the screen locking power consumption information in the second screen locking time period are the screen locking power consumption letter of the electronic equipment after stopping wrapping Breath.
First screen locking time period included:First screen locking time period sart point in time and the first screen locking time period knot Beam time point, the second screen locking time period include:When the second screen locking time period sart point in time and the second screen locking Between section end time point.
Used as an alternative embodiment, screen locking power consumption information is screen locking power consumption, and Fig. 4 is the embodiment of the present invention three Statistics has the lock in the screen locking time period that the identical electronic equipment for stopping bag number is pre-set described in before stopping wrapping The schematic flow sheet of screen power consumption information.Referring to Fig. 4, the flow process includes:
A11, according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
In this step, stop bag number quantity according to statistics, electronic equipment is divided into and corresponding multiple stops steamed bun Class, for example, will stop the electronic equipment that bag number is 1 and is attributed to first to stop steamed bun class, will stop the electronics that bag number is 2 Equipment is attributed to second and stops steamed bun class etc..
A12, obtains j-th and stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind in the first screen locking time period sart point in time The first dump energy, wherein, j, i are natural number;
A13, obtains second remaining electricity of i-th electronic equipment in the first end time screen locking time period point Amount;
A14, calculates the difference of the first dump energy and the second dump energy, obtains i-th electronic equipment Screen locking power consumption within the first screen locking time period;
A15, stops screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th Sum-average arithmetic is carried out, described j-th is obtained and is stopped the screen locking time period that steamed bun class is pre-set described in before stopping wrapping Interior screen locking power consumption information.
Screen locking consumption in this step, by each each electronic equipment for stopping steamed bun apoplexy due to endogenous wind within the first screen locking time period The meansigma methodss of electricity stop screen locking power consumption of the steamed bun class within the first screen locking time period as this.
In the embodiment of the present invention, stop for j-th in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping Screen locking power consumption information computing formula be:
In formula,
J be divide stop steamed bun class number;
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj1iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period for j-th Breath;
N is j-th stops the electronic equipment number that steamed bun apoplexy due to endogenous wind is included.
As an alternative embodiment, in the difference for calculating the first dump energy and the second dump energy, obtain To i-th electronic equipment after the screen locking power consumption in the first screen locking time period;Stop steamed bun to j-th Each electronic equipment of apoplexy due to endogenous wind before the screen locking power consumption in the first screen locking time period carries out sum-average arithmetic, the party Method can further include:
Whether the screen locking power consumption for obtaining is judged beyond the threshold range for pre-setting, if it is, deleting the lock Screen power consumption.
Used as another alternative embodiment, screen locking power consumption information is screen locking power consumption speed, and Fig. 5 is present invention enforcement The statistics of example four had in the screen locking time period that the identical electronic equipment for stopping bag number is pre-set described in before stopping wrapping Screen locking power consumption information schematic flow sheet.Referring to Fig. 5, the flow process includes:
A21, according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
A12, obtains j-th and stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind in the first screen locking time period sart point in time The first dump energy, wherein, j, i are natural number;
A23, obtains second remaining electricity of i-th electronic equipment in the first end time screen locking time period point Amount;
A24, calculates the difference of the first dump energy and the second dump energy, obtains i-th electronic equipment Screen locking power consumption within the first screen locking time period;
A25, stops screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th Carry out sum-average arithmetic;
A26, calculates value and the business of the first screen locking time period that sum-average arithmetic is obtained, obtains described j-th and stop bag The screen locking power consumption speed in the screen locking time period that subclass is pre-set described in before stopping wrapping.
In this step, stop screen locking power consumption of the steamed bun class within the first screen locking time period with described using j-th One screen locking time period, the screen locking power consumption of unit interval that stops steamed bun class within the first screen locking time period can be obtained Speed.
In the embodiment of the present invention, statistics described setting in advance after stopping wrapping with the identical electronic equipment for stopping bag number The screen locking power consumption information in the screen locking time period put with statistics with the identical electronic equipment for stopping bag number stop bag before The screen locking time period for pre-setting in screen locking power consumption information flow process it is similar, it is except for the difference that, front Person is within the second screen locking time period.Stop the screen locking time that steamed bun class is pre-set described in after stopping wrapping for i.e. j-th Section in screen locking power consumption information computing formula be:
In formula,
Ψj2For stop for j-th steamed bun class after stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj2iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the second screen locking time period for j-th Breath.
In the embodiment of the present invention, stop steamed bun class for same, in the first screen locking time period and during the second screen locking Between the electronic equipment number that includes in section it is identical.
In the embodiment of the present invention, if screen locking power consumption information is screen locking power consumption, it is preferred that during the first screen locking Between section it is equal with the time span that the second screen locking time period included.If screen locking power consumption information is screen locking power consumption speed Rate, the time span that the first screen locking time period of setting was included with the second screen locking time period can also may be used with equal With unequal.
In the embodiment of the present invention, if the screen locking time period for pre-setting also includes stops the 3rd screen locking after wrapping Multiple time periods such as time period, then calculate with the identical electronic equipment for stopping bag number within the second screen locking time period And the 3rd the average of screen locking power consumption information of screen locking time period there is the identical electronic equipment for stopping bag number as this The screen locking power consumption information in the screen locking time period pre-set described in before stopping wrapping.
Step 103, it is described described pre- before and after stopping wrapping with the identical electronic equipment for stopping bag number according to what is obtained Screen locking power consumption information in the screen locking time period for first arranging, calculates described with the identical electronic equipment for stopping bag number Screen locking power consumption optimal value.
It is in this step, each to stop steamed bun class (there is the identical electronic equipment for stopping bag number) one screen locking power consumption of correspondence Optimal value.
As an alternative embodiment, according to obtain it is described with the identical electronic equipment for stopping bag number before bag is stopped The screen locking power consumption information in the screen locking time period for pre-setting afterwards, calculating is described to stop bag number with identical The screen locking power consumption optimal value of electronic equipment include:
C1, calculating stop the lock in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping for described j-th Screen power consumption information with stop for described j-th steamed bun class after stopping wrapping described in screen locking time period for pre-setting The difference of screen locking power consumption information;
C2, by difference divided by stop for described j-th steamed bun class before stopping wrapping described in screen locking time period for pre-setting Interior screen locking power consumption information, the screen locking power consumption optimal value of the electronic equipment for obtaining stopping steamed bun class described j-th.
In this step, the calculating that calculating stops the screen locking power consumption optimal value of the electronic equipment of steamed bun class for described j-th is public Formula is as follows:
In the embodiment of the present invention, when there is screen locking of the identical electronic equipment for stopping bag number before stopping wrapping by calculating Between screen locking power consumption information in section with stop wrapping after the screen locking time period in screen locking power consumption information difference, should Difference obtains this and has the identical electricity for stopping bag number divided by the screen locking power consumption information in the screen locking time period stopped before wrapping The screen locking power consumption contrast optimal value of sub- equipment, the screen locking power consumption contrast optimal value are bigger, show that stopping bag processes right The effect of electronic equipment economize on electricity is more notable;If it is bigger to stop the more screen locking power consumption contrast optimal values of bag number, table The bright application package number for stopping wrapping is more, and the effect of economize on electricity is more notable.So, contrast excellent by screen locking power consumption Change value is directly displayed, and is enabled to concrete province's information about power that user stops to difference before and after bag number stops wrapping and is had Direct feel, lifts user and the bag that stops of inessential application package is realized, lift electronic equipment and save electrically optimized Efficiency.
In the embodiment of the present invention, used as an alternative embodiment, the method can further include:
Step 104, using described pre- before and after stopping wrapping with the identical electronic equipment for stopping bag number described in acquisition The screen locking power consumption information in the screen locking time period for first arranging and predetermined credibility, calculate described with identical Stop the screen locking power consumption information credibility interval of the electronic equipment of bag number;
In this step, stop each electronic equipment that steamed bun apoplexy due to endogenous wind is included for each, which is described in before and after bag is stopped Screen locking power consumption information in the screen locking time period for pre-setting may differ by it is larger, therefore, it is possible to stopping steamed bun Class is finely divided again, with the screen locking power consumption optimal value for asking for segmenting.
As an alternative embodiment, credibility of the credibility using normal distribution.It is preferred that credibility is 3 Times mean square deviation (3dev) credibility, it is of course also possible to use the mean square deviation credibility of other multiples, for example, 2 times of mean square deviation credibilitys or 5 times of mean square deviation credibilitys etc.;Or, the credibility of other distributions can also be adopted, For example, Poisson distribution etc..
Used as an alternative embodiment, the step can include:
D1, calculates described with screen locking power consumption of the identical electronic equipment for stopping bag number within the first screen locking time period The screen locking power consumption information difference of the screen locking power consumption information in information and the second screen locking time period;
In this step, screen locking power consumption information difference computing formula is:
Δjij1ij2i
In formula,
ΔjiTo stop the screen locking power consumption information difference of steamed bun i-th electronic equipment of apoplexy due to endogenous wind for j-th.
D2, enters to the calculated screen locking power consumption information difference with the identical electronic equipment for stopping bag number Row sum-average arithmetic, obtains screen locking power consumption information average;
In this step, screen locking power consumption information mean value computation formula is as follows:
In formula,
ΔjavgStop the corresponding screen locking power consumption information average of steamed bun class for j-th.
D3, according to the screen locking power consumption information difference and the screen locking power consumption information average, calculates screen locking consumption Electrical information variance, with the screen locking power consumption information average and screen locking power consumption information variance mark screen locking consumption Electrical information credibility interval.
In this step, screen locking power consumption information variance is calculated using following formula:
In formula,
σjStop the corresponding screen locking power consumption information variance of steamed bun class for j-th.
In the embodiment of the present invention, as an alternative embodiment, stop the corresponding screen locking power consumption information of steamed bun class j-th Credibility interval can be expressed as:
Δjavg±3σj
It is in the embodiment of the present invention, each to stop one screen locking power consumption information credibility interval of steamed bun class correspondence correspondence.
The screen locking power consumption information credibility interval is divided into many by step 105 according to the partition strategy for pre-setting Individual credible subinterval, calculates screen locking time of the electronic equipment being included in each credible subinterval before bag is stopped Subinterval screen locking power consumption letter in subinterval screen locking power consumption information in section and the screen locking time period after stopping wrapping Breath;
In this step, partition strategy can be according to determination be actually needed, for example, as an alternative embodiment, can According to screen locking power consumption information variance gradient, stop the corresponding screen locking power consumption information credibility interval of steamed bun class by each [Δjavg-3σjjavg+3σj] 6 credible subintervals are divided into, respectively:
javg-3σjavg-2σj]、(Δjavg-2σjjavgj]、(Δjavgjjavg]、(Δjavgjavgj]、 (Δjavgjjavg+2σj] and (Δjavg+2σjjavg+3σj]。
As another alternative embodiment, credible subinterval can be carried out according to the 10% of most power consumption, 20%, 30% etc. Divide, such as 6 σ 10%, 20%, 30% ..., 3100% be divided into 10 credible subintervals.
In this step, the subinterval screen locking in screen locking time period of the electronic equipment before stopping wrapping is calculated using following formula Power consumption information:
In formula,
Ψj1kDuring the screen locking for being the electronic equipment that stops in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th before stopping wrapping Between screen locking power consumption information in section;
Ψj1kiStop in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th, lock of i-th electronic equipment before bag is stopped Screen locking power consumption information in the screen time period;
K is j-th stops the number of electronic devices that k-th credible subinterval of steamed bun apoplexy due to endogenous wind includes.
Analogously, the subinterval screen locking in screen locking time period of the electronic equipment after stopping wrapping is calculated using following formula Power consumption information:
In formula,
Ψj2kDuring the screen locking for being the electronic equipment that stops in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th after stopping wrapping Between screen locking power consumption information in section;
Ψj2kiStop in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th, i-th electronic equipment is after bag is stopped Screen locking power consumption information in the screen locking time period;
K is j-th number of electronic devices for stopping including in k-th credible subinterval of steamed bun apoplexy due to endogenous wind.
Step 106, according in screen locking time period of the electronic equipment in the credible subinterval for calculating before stopping wrapping Subinterval screen locking power consumption information and stop wrap after the screen locking time period in subinterval screen locking power consumption information, obtain The screen locking power consumption contrast optimal value in the credible subinterval.
In this step, the screen locking power consumption contrast optimal value in credible subinterval is calculated using following formula:
In formula, ξjkOptimal value is contrasted for the screen locking power consumption that j-th is stopped k-th credible subinterval of steamed bun apoplexy due to endogenous wind.
From above-mentioned, the method for embodiment of the present invention application package power consumption contrast, stopped before bag by obtaining The application package number that each electronic equipment afterwards is run within the screen locking time period for pre-setting respectively;Obtain tool The screen locking consumption having in the identical electronic equipment for stopping bag number screen locking time period for pre-setting described in before and after stopping wrapping Electrical information;According to described the setting in advance before and after stopping wrapping with the identical electronic equipment for stopping bag number for obtaining Screen locking power consumption information in the screen locking time period put, calculates the lock with the identical electronic equipment for stopping bag number Screen power consumption optimal value.So, the screen locking power consumption contrast optimal value is bigger, shows that stopping bag is processed to electronic equipment The effect of economize on electricity is more notable;If it is bigger to stop the more screen locking power consumption contrast optimal values of bag number, show to stop what is wrapped Application package number is more, and the effect of economize on electricity is more notable.So, the straight of optimal value is contrasted by screen locking power consumption Connect display, enable to user difference is stopped bag number stop wrap before and after concrete province's information about power there is direct feel, Lift user to realize the bag that stops of inessential application package, lift electronic equipment power saving optimization efficiency.
Fig. 6 is the apparatus structure schematic diagram of embodiment of the present invention application package power consumption contrast.Referring to Fig. 6, should Device includes:Stop bag number acquisition module 201, screen locking power consumption data obtaining module 202 and screen locking power consumption optimization Value computing module 203, wherein,
Stop bag number acquisition module 201, for each electronic equipment before and after stopping wrapping being obtained respectively in the lock for pre-setting The application package number of operation in the screen time period;
In the embodiment of the present invention, the screen locking time period for pre-setting includes:Stop the first screen locking time period before wrapping And stop the second screen locking time period after wrapping.Wherein, the first screen locking time period and the second screen locking time period can be with It is the screen locking time period of adjacent screen locking time period, or interruption.
Fig. 7 stops the first structure schematic diagram of bag number acquisition module for the embodiment of the present invention.Referring to Fig. 7, stop bag number Acquisition module 201 includes:First screen locking time period stopped bag number acquiring unit 71 and the second screen locking time period stopped Bag number acquiring unit 72, wherein,
First screen locking time period stopped bag number acquiring unit 71, was arranging for arranging the electronic equipment of predetermined quantity Stop wrap before the first screen locking time period in running background first threshold application package;
Second screen locking time period stopped bag number acquiring unit 72, and the electronic equipment for arranging the predetermined quantity exists The application package of running background Second Threshold, second threshold of operation in the second screen locking time period for arranging The application package of the application package of value and the first threshold of operation be comprising with the relation for being included.
Fig. 8 stops the second structural representation of bag number acquisition module for the embodiment of the present invention.Referring to Fig. 8, stop bag number Acquisition module 201 includes:First extraction unit 81, the second extraction unit 82 and judge processing unit 83, Wherein,
First extraction unit 81, for extracting the application of electronic equipment running background within the first screen locking time period First quantity of program bag;
Second extraction unit 82, for extracting electronic equipment running background within the second screen locking time period Second quantity of application package;
Judge processing unit 83, if the application package of the first quantity with the application package of the second quantity is Comprising with the relation for being included, by the application package and second of the first quantity in the first screen locking time period Each electronics before and after the application package of the second quantity in the screen locking time period stops wrapping respectively as the acquisition sets The application package number that back-up is not run within the screen locking time period for pre-setting.
Screen locking power consumption data obtaining module 202, for obtaining with the identical electronic equipment for stopping bag number before bag is stopped The screen locking power consumption information in the screen locking time period for pre-setting afterwards;
The screen locking power consumption letter in the screen locking time period for pre-setting in the embodiment of the present invention, before and after stopping wrapping Breath includes:Screen locking power consumption information in first screen locking time period and the screen locking power consumption in the second screen locking time period Information, wherein, the screen locking power consumption information in the first screen locking time period is the screen locking consumption of the electronic equipment before stopping wrapping Electrical information, the screen locking power consumption information in the second screen locking time period are the screen locking power consumption letter of the electronic equipment after stopping wrapping Breath.Screen locking power consumption information includes screen locking power consumption and screen locking power consumption speed.
First structure schematic diagrams of the Fig. 9 for embodiment of the present invention screen locking power consumption data obtaining module.Referring to Fig. 9, Screen locking power consumption data obtaining module 202 includes:Subclass division unit 91, the first dump energy acquiring unit 92, Second dump energy acquiring unit 93, screen locking power consumption computing unit 94 and screen locking power consumption information calculating unit 95, wherein,
Subclass division unit 91, for according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
First dump energy acquiring unit 92, stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind for j-th for obtaining First dump energy of one screen locking time period sart point in time, wherein, j, i are natural number;
Second dump energy acquiring unit 93, for obtaining i-th electronic equipment in the first screen locking time Second dump energy of section end time point;
Screen locking power consumption computing unit 94, for calculating the difference of the first dump energy and the second dump energy, Obtain screen locking power consumption of i-th electronic equipment within the first screen locking time period;
Screen locking power consumption information calculating unit 95, for stopping each electronic equipment of steamed bun apoplexy due to endogenous wind to j-th first Screen locking power consumption in the screen locking time period carries out sum-average arithmetic, obtains stopping for described j-th steamed bun class before bag is stopped Screen locking power consumption information in the screen locking time period for pre-setting.
In the embodiment of the present invention, calculated using following formula and stop what steamed bun class was pre-set described in before stopping wrapping for j-th Screen locking power consumption information in the screen locking time period:
In formula,
J be divide stop steamed bun class number;
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj1iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period for j-th Breath;
N is j-th stops the electronic equipment number that steamed bun apoplexy due to endogenous wind is included.
Stop the screen locking power consumption information in the screen locking time period that steamed bun class is pre-set described in after stopping wrapping for j-th Computing formula is:
In formula,
Ψj2For stop for j-th steamed bun class after stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj2iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the second screen locking time period for j-th Breath.
Used as an alternative embodiment, screen locking power consumption data obtaining module 202 can further include:
Screen locking power consumption judging unit, for judging the screen locking power consumption for obtaining whether beyond the threshold for pre-setting Value scope, if it is, deleting the screen locking power consumption.
Second structural representations of the Figure 10 for embodiment of the present invention screen locking power consumption data obtaining module.Referring to Figure 10, Screen locking power consumption data obtaining module 202 includes:Subclass division unit 01, the first dump energy acquiring unit 02, Second dump energy acquiring unit 03, screen locking power consumption computing unit 04, average calculation unit 05 and Screen locking power consumption rate calculation unit 06, wherein,
Subclass division unit 01, for according to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
First dump energy acquiring unit 02, stops i-th electronic equipment of steamed bun apoplexy due to endogenous wind for j-th for obtaining First dump energy of one screen locking time period sart point in time, wherein, j, i are natural number;
Second dump energy acquiring unit 03, for obtaining i-th electronic equipment in the first screen locking time Second dump energy of section end time point;
Screen locking power consumption computing unit 04, for calculating the difference of the first dump energy and the second dump energy, Obtain screen locking power consumption of i-th electronic equipment within the first screen locking time period;
Average calculation unit 05, for stopping each electronic equipment of steamed bun apoplexy due to endogenous wind to j-th in the first screen locking Between screen locking power consumption in section carry out sum-average arithmetic;
Screen locking power consumption rate calculation unit 06, for calculating value and the first screen locking time period that sum-average arithmetic is obtained Business, obtain stopping the screen locking in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping for described j-th Power consumption speed.
Screen locking power consumption optimal value computing module 203, for there is the identical electronics for stopping bag number described in foundation acquisition The screen locking power consumption information in the screen locking time period that equipment is pre-set described in before and after stopping wrapping, calculates the tool There is the screen locking power consumption optimal value of the identical electronic equipment for stopping bag number.
In the embodiment of the present invention, used as an alternative embodiment, screen locking power consumption optimal value computing module 203 includes: Screen locking power consumption information difference computing unit and screen locking power consumption optimal value computing unit (not shown), its In,
Screen locking power consumption information difference computing unit, stops steamed bun class for j-th for calculating described advance before stopping wrapping Screen locking power consumption information in the screen locking time period of setting is set in advance with described after stopping wrapping of steamed bun class is stopped for j-th The difference of the screen locking power consumption information in the screen locking time period put;
Screen locking power consumption optimal value computing unit, for by difference divided by stopping steamed bun class for described j-th before bag is stopped Screen locking power consumption information in the screen locking time period for pre-setting, obtains stopping the electronics of steamed bun class for described j-th The screen locking power consumption optimal value of equipment.
In the embodiment of the present invention, stop the screen locking power consumption of the electronic equipment of steamed bun class using following formula calculating for described j-th Optimal value:
In formula,
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj2For stop for j-th steamed bun class after stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information.
Used as another alternative embodiment, the device can further include:Credibility interval computing module 204, Subinterval division module 205 and subinterval optimal value computing module 206, wherein,
Credibility interval computing module 204, for existing with the identical electronic equipment for stopping bag number using described in acquisition The screen locking power consumption information in the screen locking time period for pre-setting and predetermined credibility before and after stopping wrapping, Calculate the screen locking power consumption information credibility interval with the identical electronic equipment for stopping bag number;
In the embodiment of the present invention, used as an alternative embodiment, credibility interval computing module 204 includes:First Computing unit, the second computing unit and the 3rd computing unit (not shown), wherein,
First computing unit, described has the identical electronic equipment for stopping bag number in the first screen locking time for calculating The screen locking power consumption information gap of the screen locking power consumption information in screen locking power consumption information and the second screen locking time period in section Value;
In the embodiment of the present invention, screen locking power consumption information difference computing formula is:
Δjij1ij2i
In formula,
ΔjiTo stop the screen locking power consumption information difference of steamed bun i-th electronic equipment of apoplexy due to endogenous wind for j-th.
Second computing unit, for the calculated screen locking with the identical electronic equipment for stopping bag number Power consumption information difference carries out sum-average arithmetic, obtains screen locking power consumption information average;
In the embodiment of the present invention, screen locking power consumption information mean value computation formula is as follows:
In formula,
ΔjavgStop the corresponding screen locking power consumption information average of steamed bun class for j-th.
3rd computing unit, for equal according to the screen locking power consumption information difference and the screen locking power consumption information Value, calculates screen locking power consumption information variance, with the screen locking power consumption information average and the screen locking power consumption information Variance mark screen locking power consumption information credibility interval.
In the embodiment of the present invention, screen locking power consumption information variance is calculated using following formula:
In formula,
σjStop the corresponding screen locking power consumption information variance of steamed bun class for j-th.
In the embodiment of the present invention, as an alternative embodiment, stop the corresponding screen locking power consumption information of steamed bun class j-th Credibility interval can be expressed as:
Δjavg±3σj
It is in the embodiment of the present invention, each to stop one screen locking power consumption information credibility interval of steamed bun class correspondence correspondence.
Subinterval division module 205, for can by the screen locking power consumption information according to the partition strategy for pre-setting Letter interval division is multiple credible subintervals, calculates the electronic equipment being included in each credible subinterval and is stopping Subinterval screen locking power consumption information in the screen locking time period before bag and the son in the screen locking time period after stopping wrapping Interval screen locking power consumption information;
In the embodiment of the present invention, the sub-district in screen locking time period of the electronic equipment before stopping wrapping is calculated using following formula Between screen locking power consumption information:
In formula,
Ψj1kDuring the screen locking for being the electronic equipment that stops in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th before stopping wrapping Between screen locking power consumption information in section;
Ψj1kiStop in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th, lock of i-th electronic equipment before bag is stopped Screen locking power consumption information in the screen time period;
K is j-th stops the number of electronic devices that k-th credible subinterval of steamed bun apoplexy due to endogenous wind includes.
The subinterval screen locking power consumption information in screen locking time period of the electronic equipment after stopping wrapping is calculated using following formula:
In formula,
Ψj2kDuring the screen locking for being the electronic equipment that stops in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th after stopping wrapping Between screen locking power consumption information in section;
Ψj2kiStop in k-th credible subinterval of steamed bun apoplexy due to endogenous wind for j-th, i-th electronic equipment is after bag is stopped Screen locking power consumption information in the screen locking time period;
K is j-th number of electronic devices for stopping including in k-th credible subinterval of steamed bun apoplexy due to endogenous wind.
Subinterval optimal value computing module 206, for stopping according to the electronic equipment in the credible subinterval for calculating Subinterval screen locking power consumption information in the screen locking time period before bag and the sub-district in the screen locking time period after stopping wrapping Between screen locking power consumption information, obtain the credible subinterval screen locking power consumption contrast optimal value.
In the embodiment of the present invention, the screen locking power consumption contrast optimal value in credible subinterval is calculated using following formula:
In formula, ξjkOptimal value is contrasted for the screen locking power consumption that j-th is stopped k-th credible subinterval of steamed bun apoplexy due to endogenous wind.
The embodiment of the present invention additionally provides a kind of terminal, referring to Figure 11, terminals of the Figure 11 for the embodiment of the present invention Structural representation, can include:
One or more processor 11;
Memorizer 12;
One or more module 13, one or more of modules 13 are stored in the memorizer 12, Proceed as follows when being performed by one or more of processors 11:
Obtain the application journey that each electronic equipment before and after stopping wrapping is run within the screen locking time period for pre-setting respectively Sequence bag number;
Obtain the screen locking time period that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Interior screen locking power consumption information;
According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.
The embodiment of the present invention additionally provides a kind of storage medium, for storing application program, the application program Method for performing a kind of application package power consumption contrast that the embodiment of the present invention is provided.
The embodiment of the present invention additionally provides a kind of application program, for perform that the embodiment of the present invention is provided one The method for planting application package power consumption contrast.
Expression or here logic described otherwise above and/or step, for example, can be recognized in flow charts To be the order list for realizing the executable instruction of logic function, any computer is may be embodied in In computer-readable recording medium, for instruction execution system, device or terminal (such as computer based system, including place The system of reason device or other can be from the system of instruction execution system, device or terminal instruction fetch execute instruction) Use, or combine these instruction execution systems, device or terminal and use.For the purpose of this specification, " calculate Machine computer-readable recording medium " can be it is any can include, store, communicating, propagating or transmission procedure for instruction perform System, device or terminal or the device used with reference to these instruction execution systems, device or terminal.Calculate The more specifically example (non-exhaustive list) of machine computer-readable recording medium is including following:With one or more wirings Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), Read only memory (ROM), erasable edit read-only storage (EPROM or flash memory), Fiber device, and portable optic disk read-only storage (CDROM).In addition, computer-readable medium is very Can extremely be the paper or other suitable media that can print described program thereon, because can for example by right Paper or other media carry out optical scanning, then enter edlin, interpretation or are entered with other suitable methods if necessary Row process is then stored in computer storage electronically obtaining described program.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof. In the above-described embodiment, multiple steps or method can be held with storing in memory and by suitable instruction Software that row system is performed or firmware are realizing.For example, if realized with hardware, and in another embodiment party It is the same in formula, can be realized with any one of following technology well known in the art or their combination:Have For the discrete logic of the logic gates of logic function is realized to data signal, with suitable combination The special IC of logic gates, programmable gate array (PGA), field programmable gate array (FPGA) Deng.
Those skilled in the art are appreciated that to realize the whole or portion that above-described embodiment method is carried The hardware that program be can be by step by step to instruct correlation is completed, and described program can be stored in a kind of meter In calculation machine readable storage medium storing program for executing, the program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, it is to be divided into various units/modules with function to describe respectively to describe apparatus above.When So, can be the function of each unit/module in same or multiple softwares and/or hardware when the present invention is implemented Realize.
As seen through the above description of the embodiments, those skilled in the art can be understood that this Invention can add the mode of required general hardware platform to realize by software.Based on such understanding, this The part that bright technical scheme is substantially contributed to prior art in other words can be in the form of software product Embody, the computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., use including some instructions so that computer equipment (can be personal computer, server, Or the network equipment etc.) perform method described in some parts of each embodiment of the invention or embodiment.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention Should be defined by scope of the claims.

Claims (10)

1. a kind of method that application package power consumption is contrasted, it is characterised in that the method includes:
Obtain the application journey that each electronic equipment before and after stopping wrapping is run within the screen locking time period for pre-setting respectively Sequence bag number;
Obtain the screen locking time period that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Interior screen locking power consumption information;
According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.
2. method according to claim 1, it is characterised in that the screen locking time period for pre-setting Including:Stop the first screen locking time period before bag and stop the second screen locking time period after wrapping;The acquisition stops bag The application package number that each electronic equipment in front and back is run within the screen locking time period for pre-setting respectively includes:
Arrange the electronic equipment of predetermined quantity arrange stop wrapping before the first screen locking time period in running background the The application package of one threshold value;
The electronic equipment of the predetermined quantity the second threshold of running background within the second screen locking time period for arranging is set The application package of value, application package and the first threshold of operation of the Second Threshold of operation Application package be comprising with the relation for being included.
3. method according to claim 1, it is characterised in that the screen locking time period for pre-setting Including:Stop the first screen locking time period before bag and stop the second screen locking time period after wrapping;The acquisition stops bag The application package number that each electronic equipment in front and back is run within the screen locking time period for pre-setting respectively includes:
Extract the first quantity of electronic equipment application package of running background within the first screen locking time period;
Extract the second number of electronic equipment application package of running background within the second screen locking time period Amount;
If the application package of the application package of the first quantity and the second quantity be comprising with the pass for being included System;
By the application package of the first quantity in the first screen locking time period and in the second screen locking time period Each electronic equipment before and after the application package of two quantity stops wrapping respectively as the acquisition is being pre-set respectively The screen locking time period in operation application package number.
4. the method according to claim 1 or 2 or 3, it is characterised in that the screen locking power consumption information Including screen locking power consumption, the acquisition has the identical electronic equipment for stopping bag number described setting in advance before stopping wrapping Screen locking power consumption information in the screen locking time period put includes:
According to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
Obtain j-th and stop i-th electronic equipment of steamed bun apoplexy due to endogenous wind the first of the first screen locking time period sart point in time Dump energy, wherein, j, i are natural number;
Obtain second dump energy of i-th electronic equipment in the first end time screen locking time period point;
The difference of the first dump energy and the second dump energy is calculated, and i-th electronic equipment is obtained first Screen locking power consumption in the screen locking time period;
Stopping screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th is carried out Sum-average arithmetic, obtains described j-th and stops in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping Screen locking power consumption information.
5. method according to claim 4, it is characterised in that calculated j-th using following formula and stop steamed bun The screen locking power consumption information in the screen locking time period that class is pre-set described in before stopping wrapping:
Ψ j 1 = Σ i = 1 n Ψ j 1 i n
In formula,
J be divide stop steamed bun class number;
Ψj1For stop for j-th steamed bun class before stopping wrapping described in screen locking power consumption in screen locking time period for pre-setting Information;
Ψj1iStop screen locking power consumption letter of i-th electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period for j-th Breath;
N is j-th stops the electronic equipment number that steamed bun apoplexy due to endogenous wind is included.
6. method according to claim 4, it is characterised in that the first dump energy of the calculating with The difference of the second dump energy, obtains screen locking power consumption of i-th electronic equipment within the first screen locking time period After amount;Stop screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to enter to j-th Before row sum-average arithmetic, methods described is further included:
Whether the screen locking power consumption for obtaining is judged beyond the threshold range for pre-setting, if it is, deleting the lock Screen power consumption.
7. the method according to claim 1 or 2 or 3, it is characterised in that the screen locking power consumption information Including screen locking power consumption speed, the acquisition has the identical electronic equipment for stopping bag number described advance before stopping wrapping Screen locking power consumption information in the screen locking time period of setting includes:
According to stopping bag number and be divided into electronic equipment multiple to stop steamed bun class;
Obtain j-th and stop i-th electronic equipment of steamed bun apoplexy due to endogenous wind the first of the first screen locking time period sart point in time Dump energy, wherein, j, i are natural number;
Obtain second dump energy of i-th electronic equipment in the first end time screen locking time period point;
The difference of the first dump energy and the second dump energy is calculated, and i-th electronic equipment is obtained first Screen locking power consumption in the screen locking time period;
Stopping screen locking power consumption of each electronic equipment of steamed bun apoplexy due to endogenous wind within the first screen locking time period to j-th is carried out Sum-average arithmetic;
The business of the value that obtains of sum-average arithmetic and the first screen locking time period is calculated, obtains described j-th and stop steamed bun class existing The screen locking power consumption speed in the screen locking time period for pre-setting before stopping wrapping.
8. the method according to claim 1 or 2 or 3, it is characterised in that described according to the institute for obtaining State with the identical electronic equipment for stopping bag number before and after stopping wrapping described in lock in screen locking time period for pre-setting Screen power consumption information, calculating the screen locking power consumption optimal value with the identical electronic equipment for stopping bag number includes:
Calculating stops the screen locking power consumption in the screen locking time period that steamed bun class is pre-set described in before stopping wrapping for j-th Information and the screen locking power consumption stopped for j-th in the screen locking time period that steamed bun class is pre-set described in after stopping wrapping are believed The difference of breath;
By difference divided by stop for described j-th steamed bun class before stopping wrapping described in screen locking time period for pre-setting Screen locking power consumption information, the screen locking power consumption optimal value of the electronic equipment for obtaining stopping steamed bun class described j-th.
9. method according to claim 10, it is characterised in that described described to have using what is obtained The screen locking power consumption in the screen locking time period that the identical electronic equipment for stopping bag number is pre-set described in before and after stopping wrapping Information and predetermined credibility, calculate the screen locking power consumption information with the identical electronic equipment for stopping bag number Credibility interval includes:
Calculate described with screen locking power consumption information of the identical electronic equipment for stopping bag number within the first screen locking time period With the screen locking power consumption information difference of the screen locking power consumption information in the second screen locking time period;
The calculated screen locking power consumption information difference with the identical electronic equipment for stopping bag number is asked With it is average, obtain screen locking power consumption information average;
According to the screen locking power consumption information difference and the screen locking power consumption information average, screen locking power consumption letter is calculated Breath variance, with the screen locking power consumption information average and screen locking power consumption information variance mark screen locking power consumption letter Breath credibility interval.
10. a kind of terminal, including:
One or more processor;
Memorizer;
One or more module, one or more of module stores in which memory, when by institute Proceed as follows when stating one or more computing device:
Obtain the application journey that each electronic equipment before and after stopping wrapping is run within the screen locking time period for pre-setting respectively Sequence bag number;
Obtain the screen locking time period that there is the identical electronic equipment for stopping bag number to pre-set described in before and after stopping wrapping Interior screen locking power consumption information;
According to obtain it is described with the identical electronic equipment for stopping bag number before and after stopping wrapping described in pre-set Screen locking power consumption information in the screen locking time period, calculates the screen locking with the identical electronic equipment for stopping bag number and consumes Electrically optimized value.
CN201510627757.8A 2015-09-28 2015-09-28 Method and device for comparing power consumption of application program package and terminal Active CN106557397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510627757.8A CN106557397B (en) 2015-09-28 2015-09-28 Method and device for comparing power consumption of application program package and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510627757.8A CN106557397B (en) 2015-09-28 2015-09-28 Method and device for comparing power consumption of application program package and terminal

Publications (2)

Publication Number Publication Date
CN106557397A true CN106557397A (en) 2017-04-05
CN106557397B CN106557397B (en) 2019-03-26

Family

ID=58416511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510627757.8A Active CN106557397B (en) 2015-09-28 2015-09-28 Method and device for comparing power consumption of application program package and terminal

Country Status (1)

Country Link
CN (1) CN106557397B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023226A1 (en) * 2010-07-26 2012-01-26 Steve Petersen Prediction of activity session for mobile network use optimization and user experience enhancement
CN104281510A (en) * 2013-07-05 2015-01-14 贝壳网际(北京)安全技术有限公司 Method and system for obtaining power consumption degree of application program and energy-saving method and system
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023226A1 (en) * 2010-07-26 2012-01-26 Steve Petersen Prediction of activity session for mobile network use optimization and user experience enhancement
CN104281510A (en) * 2013-07-05 2015-01-14 贝壳网际(北京)安全技术有限公司 Method and system for obtaining power consumption degree of application program and energy-saving method and system
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal

Also Published As

Publication number Publication date
CN106557397B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
Kumar et al. The effects of ICT⁎ on output per worker: A study of the Chinese economy
CN102684224B (en) Unit combination method for resolving and considering wind power volatility
CN103049332B (en) Virtual CPU scheduling method
CN110348991A (en) Assess the method, apparatus and electronic equipment of user's accrediting amount upper limit
CN104461849B (en) CPU and GPU software power consumption measuring methods in a kind of mobile processor
CN115049232B (en) Method and system for judging station area abnormity
CN106598826A (en) Method and device for analyzing use behaviors of user
CN104657248A (en) Java thread stack analysis method and system
CN106557397A (en) Method and device for comparing power consumption of application program package and terminal
CN116544999A (en) Method, device, equipment and medium for determining installed capacity of energy storage system
CN111443615A (en) Electric equipment control system, method and equipment
CN107402939A (en) Declaration form treating method and apparatus
CN115585783A (en) Building settlement long-term monitoring system and method based on Internet of things
CN116385035A (en) Carbon emission cost determination system
CN110278122A (en) A kind of cloud database data on flows sampling analysis method
CN106557147A (en) Method and device for comparing power consumption of application program package and terminal
CN114742412A (en) Software technology service system and method
CN115618777A (en) File generation method, device, equipment and storage medium
CN106886486A (en) User terminal uses the appraisal procedure and device of attribute
CN103412814A (en) Mobile terminal system safety test and intelligent repair system and method
CN109685640A (en) Account management method, device, terminal and computer readable storage medium
CN117235760B (en) Encryption storage method and device for enterprise data, computer equipment and storage medium
CN109325234A (en) Sentence processing method, equipment and computer readable storage medium
CN109460550A (en) Report sentiment analysis method, apparatus and computer equipment are ground using the security of big data
CN112329387B (en) Formula template configuration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant