CN105100504B - Equipment application power consumption management method and apparatus - Google Patents
Equipment application power consumption management method and apparatus Download PDFInfo
- Publication number
- CN105100504B CN105100504B CN201410219205.9A CN201410219205A CN105100504B CN 105100504 B CN105100504 B CN 105100504B CN 201410219205 A CN201410219205 A CN 201410219205A CN 105100504 B CN105100504 B CN 105100504B
- Authority
- CN
- China
- Prior art keywords
- application
- electric quantity
- power consumption
- data
- equipment
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 20
- 230000005611 electricity Effects 0.000 claims abstract description 83
- 230000001186 cumulative effect Effects 0.000 claims abstract description 39
- 238000001514 detection method Methods 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims description 42
- 238000012360 testing method Methods 0.000 claims description 14
- 206010016256 fatigue Diseases 0.000 claims description 2
- 238000005070 sampling Methods 0.000 description 25
- 238000006073 displacement reaction Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 6
- 238000009825 accumulation Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 241000196324 Embryophyta Species 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 2
- 235000007164 Oryza sativa Nutrition 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 235000009566 rice Nutrition 0.000 description 2
- 244000283207 Indigofera tinctoria Species 0.000 description 1
- 241000700605 Viruses Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
- 238000004451 qualitative analysis Methods 0.000 description 1
- 230000001550 time effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses equipment application power consumption management method and apparatus;Wherein equipment application power consumption management method includes:Service condition of each application run on detection device to each hardware in equipment;The equipment total power consumption is obtained by system kernel interface;Electricity consumption value according to each application to the service condition of each hardware in equipment and each hardware set in advance, based on the equipment total power consumption, calculates at least one electric quantity consumption data applied;The electric quantity consumption data that cumulative at least one application is repeatedly calculated, and the electric quantity consumption data after the application is added up are shown.The embodiment of the present invention realizes the electric quantity consumption data for quantitatively determining application, and the electric quantity consumption data of application can be shown, and helps user to be accurately positioned compared with the application of power consumption in oneself equipment, so as to take corresponding measure to it with a definite target in view.
Description
Technical field
The present invention relates to electricity consumption of equipment administrative skill, and in particular to equipment application power consumption management method and apparatus.
Background technology
The stand-by time of mobile equipment is always to restrict its to play the bottleneck of more significant performance in user terminal, and numerous the
Tripartite is using the maximum arch-criminal for being again energy consumption of mobile equipment, therefore, the mobile equipment application power consumption condition of detection and reasonably optimizing is very
It is necessary.Application power consumption detection popular now and prioritization scheme are as follows:
Slave device starts and starts, in the run time that backstage monitors and record is each applied;Inspection is each applied affiliated
Classification, is empirically for each default power consumption weight of category setting one, such as:Power consumption, work are compared in game and video class application
The power consumption speed for having class application is more low;Afterwards, it is rough according to the above-mentioned run time each applied and default power consumption weight
Count the opposite power consumption speed of each application.The memory mapping of background application is finally optionally removed, so as to reduce whole
The committed memory ratio of system, achievees the purpose that power saving with this.
Inventor has found in process of the present invention is realized, when the prior art is according to the operation of each application in equipment is moved
Between, the roughness parameter such as applicating category estimates the power consumption speed speed of each application, it at least has the disadvantage that:
1st, model excessively idealizes, do not account for it is different using scene in reality, for example, during some application operations
Between it is longer, but be mostly backstage hang up, do not take too many CPU operation times;Also have in game less power consumption and consume very much
Electricity.
2nd, to the power consumption speed of each application, simply qualitative analysis is not quantitative, as a result not accurate enough objective.
3rd, the function and hardware module of each application actual use are not accounted for, as a result cannot truly reflect each application
True power consumption condition.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least in part
State the equipment application power consumption management method of problem and corresponding equipment application power consumption management device.
According to one aspect of the present invention, there is provided a kind of equipment application power consumption management method, it includes:On detection device
Service condition of each application of operation to each hardware in equipment;The equipment total power consumption is obtained by system kernel interface;Root
Electricity consumption value according to each application to the service condition of each hardware in equipment and each hardware set in advance, based on described
Equipment total power consumption, calculates the electric quantity consumption data of at least one application;The electricity that cumulative at least one application is repeatedly calculated
Consumption data, and the electric quantity consumption data after the application is added up are shown.
According to another aspect of the present invention, there is provided a kind of equipment application power consumption management device it include:Detection unit, is suitable for
Service condition of each application run on detection device to each hardware in equipment;Power consumption acquiring unit, suitable for by system
Kernel interface obtains equipment total power consumption;Computing unit, suitable for according to each application to the service condition of each hardware in equipment with
And the electricity consumption value of each hardware set in advance, based on the equipment total power consumption, the electricity for calculating at least one application disappears
Consume data;Cumulative display unit, the electric quantity consumption data being repeatedly calculated suitable for cumulative at least one application, and by the application
Electric quantity consumption data after cumulative are shown.
The embodiment of the present invention realizes the electric quantity consumption data for quantitatively determining application, and can disappear to the electricity of application
Consumption data are shown, and help user to be accurately positioned compared with the application of power consumption in oneself equipment, so as to take with a definite target in view it
Corresponding measure.The program plays the role of vital for auxiliary user saving equipment electricity and extension stand-by time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Figure of description is only used for showing the purpose of preferred embodiment, and is not considered as pair
The limitation of the present invention.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows equipment application power consumption management method flow diagram according to embodiments of the present invention;
Fig. 2 shows two equipment applications power consumption management apparatus structure schematic diagram according to embodiments of the present invention;
Fig. 3 shows one implementation of display unit that adds up in two equipment applications power consumption management device according to embodiments of the present invention
Example structure diagram.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Embodiment one, equipment application power consumption management method.The method of the present embodiment is illustrated with reference to Fig. 1.
In Fig. 1, the service condition of each application for being run on S100, detection device to each hardware in equipment;
Wherein, operation being detected described in the present embodiment can be completed by backstage finger daemon.
Detection operation described in the present embodiment can detect each application run within one section of sampling time in equipment in equipment
The service condition of each hardware, wherein, respectively quarter, front and back switching instant, finish time can be used as sampled point at the beginning of application,
It it is the sampling time from the time for starting to sample end sampling.For example, for an application, since bringing into operation the application
Sampling, terminates this sampling when carrying out front and back switching to the application, starts simultaneously at second of sampling, terminates to run to the application
Or carry out terminating second of sampling during front and back switching again.The detection operation can also carry out in real time, and be not limited to answer
Quarter, front and back switching instant and finish time at the beginning of.Therefore, the present embodiment is not limited detection opportunity and duration.
Each application run on the detection device includes the service condition of each hardware in equipment:That is run in equipment is each
Apply in front and back CPU usage, memory usage, each hardware usage time etc..Need what is counted to make for different hardware
It is different with the information of situation, for example, for network, it is necessary to count respectively using flow;For GPS (Global
Positioning System, worldwide navigation positioning system), it is necessary to the time of front and back positioning is counted, which kind of positioning skill used
Art (GPS, wifi, cellular data base station etc.), and used positioning accuracy (in units of rice);For bluetooth, it is necessary to unite
Count the time span using bluetooth, and the data volume for passing through Bluetooth transmission;For screen, it is necessary to which platform is run before application
When, the average value (time interval can be self-defined, such as 1 minute once) of each pixel value shown on timing acquisition screen, so
The service condition that must be applied to screen pixels is calculated afterwards.
Equipment described in the present embodiment includes but not limited to mobile equipment.
S110, pass through the system kernel interface acquisition equipment total power consumption;
The present embodiment, can obtain the equipment total power consumption by system kernel interface, specifically include:Pass through system kernel
Interface obtains equipment total power consumption, wherein, it can pass through the acquired total power consumption of equipment for equipment total power consumption in the sampling time
Amount subtracts the equipment total power consumption obtained during last time sampling and is calculated.
S120, according to each application to the service condition of each hardware in equipment and each hardware set in advance
Electricity consumption value, based on the equipment total power consumption, calculates at least one electric quantity consumption data applied;
Wherein, each hardware electricity consumption value set in advance described in the present embodiment, is drawn by great amount of samples test and statistics
Value, a kind of method of each hardware electricity consumption value of setting of embodiment includes:
First, when testing a hardware, other hardware capabilities are closed, avoid other hardware to tested hardware consumption
The influence of electric speed;
Then, tested respectively under a variety of usage scenarios, obtain the tested hardware under the multiple usage scenario
Multiple power consumption rates;
It should be noted that the present embodiment during the test, takes into full account that the various actual use scenes of each hardware are come
Tested, to obtain more objective, accurate conclusion.For example, being directed to GPS, in test, user can be tested respectively and is being continued
Displacement, intermittent displacement and the data in the opposing stationary period.Held for example, getting 10000 parts respectively by test
The data of continuous displacement, the data of 10000 parts of intermittent displacements, and (sample data is with file for 10000 parts of opposing stationary data
Form be automatically saved on equipment local disk, every part of data disappear comprising time interval length and the electricity in this period
Consumption), calculate the power consumption rate under lasting displacement respectively afterwards, the power consumption rate of intermittent displacement, and it is opposing stationary when
Power consumption rate.An arithmetic mean is done to the power consumption rate being calculated under above-mentioned different situations again, to obtain the equipment each
GPS average consumption speed under kind positioning usage scenario.
Finally, different power consumptions of the hardware under the multiple usage scenario are set according to the multiple power consumption rate
Value.
Due to same hardware, in different use states, its electricity consumption value is different, same hardware may be directed to different uses
State is tested, so as to set different electricity consumption values.For example, be directed to GPS, it uses different location technology GPS, wifi, bee
During nest data basestation, the electricity consumption value of setting is different.For screen, the electricity consumption value of its different pixels range set is different.
Wherein, a kind of method of the electric quantity consumption data of at least one application of embodiment calculating is as follows:
First, electricity consumption value using duration and the set in advance each hardware of each application to each hardware in equipment is calculated
Product, obtain it is each to apply the electric quantity consumption data in the duration be respectively C1, C2...Cn, n are positive integer;
Afterwards, the summation of the electric quantity consumption data in the duration is respectively applied to be denoted as C, C=C1+C2+...+Cn;
Then, calculate the equipment total power consumption S with it is above-mentioned be calculated respectively apply the electric quantity consumption in the duration
The ratio of the summation C of data, is denoted as F, F=S/C;In the present embodiment, the electric quantity consumption data in the duration are applied when each
When summation C is equal to the equipment total power consumption S, then described respectively to apply the electric quantity consumption data in the duration be C1,
C2...Cn。
Finally, by C1 × F, C2 × F...Cn × F adjustment is each applies the electric quantity consumption data in the duration, obtains institute
State the electric quantity consumption data of at least one application.
One instantiation is as follows:
It is assumed that it is respectively c1, c2, c3 to have used hardware three kinds of hardware electricity consumption values of three kinds of consumption electricity using 1, this section
The run time of three kinds of hardware is respectively t1, t2, t3 in duration, then this applies the electric quantity consumption data in this duration to be:C1
=c1*t1+c2*t2+c3*t3;It is assumed that we test the data of 4 applications, it is respectively:C1, C2, C3, C4;It is acquired this when
The total power consumption of equipment is S in length, F=S/ (C1+C2+C3+C4) is made, if F!=1 (F is not equal to 1), then adjust each application electricity
Measuring consumption data is respectively:C1 '=C1 × F, C2 '=C2 × F, C3 '=C3 × F, C4 '=C4 × F, the electricity finally respectively applied
Consumption data is respectively C1 ', C2 ', C3 ', C4 '.
An above-mentioned example for cited by inventor, when actually calculating, for the different use states of same hardware,
I.e. different electricity consumption values when can count respectively using duration.
Wherein, the electric quantity consumption data that what the present embodiment was calculated respectively apply are known as the electric quantity consumption speed of application.
The electric quantity consumption data that S130, cumulative at least one application are repeatedly calculated, and the electricity after the application is added up
Amount consumption data is shown.
The present embodiment is after the electric quantity consumption data of at least one application are calculated, by this application being calculated
Electric quantity consumption data and the electric quantity consumption data accumulation for the corresponding application being calculated before, it is, will for each application
The electric quantity consumption data being calculated every time carry out cumulative storage respectively, and the electric quantity consumption data respectively applied after can adding up are tired out
Add and be stored in database.
A kind of method that is shown of electric quantity consumption data after embodiment adds up the application is as follows, specifically includes:
1) power consumption grade is applied in the electric quantity consumption data division after the equipment locally adds up according to the application, shows institute
State and apply power consumption grade.Power consumption is applied in a kind of electric quantity consumption data division after embodiment can directly add up according to the application
Grade, the electric quantity consumption data after another embodiment can add up the application are averaged, and are divided and applied according to average value
Power consumption grade.One of which embodiment is divided is using the principle of power consumption grade:Make to tend to be average using number in each grade
Distribution, it is to be understood that each principle using power consumption grade of above-mentioned division is only an instantiation cited by inventor, this
Invention is not limited thereto, and can use different division methods in practical operation as needed.Or
2) the electric quantity consumption data after the equipment locally adds up according to the application determine to rank using power consumption, show institute
State and ranked using power consumption;A kind of electric quantity consumption data after embodiment can directly add up according to the application determine to arrange using power consumption
OK, the electric quantity consumption data after another embodiment can add up the application are averaged, and are determined according to average value using consumption
Electricity seniority among brothers and sisters.Or
3) the electric quantity consumption data after the equipment locally adds up according to the application determine to apply electricity consumption value, described in displaying
Using electricity consumption value.Electric quantity consumption data after being added up described in the present embodiment according to the application determine using electricity consumption value i.e., according to
Electric quantity consumption data after the application adds up are averaged and apply electricity consumption value as described.
It above are only instantiation of the displaying cited by inventor using electric quantity consumption data, but the present embodiment not office
It is limited to this,
Another embodiment, the method that the electric quantity consumption data after the application is added up are shown is as follows, specific bag
Include:
First, to server, the data reported include reported data:The application add up after electric quantity consumption number
According to the device type and operating system of, the equipment;
When the opportunity of the present embodiment reported data to server unlocks for equipment, and user's current network is WLAN
WiFi (Wireless Fidelity, WLAN).It should be noted that equipment reports the data to clothes by WiFi
Business device, can evade the network request of initiation to greatest extent influences the normal use of user equipment, and unnecessarily consumes
The flow of user.
Afterwards, server periodically does statistics according to the reported data subset type and operating system of multiple devices and calculates,
Obtain at least one and apply electric quantity consumption data, the equipment for being periodically issued to corresponding types and operating system;
Wherein, the method that server statistics described in the present embodiment calculate includes:The equipment type uploaded according to user and behaviour
Make system information, at least one after adding up classifies using electric quantity consumption data, equipment type and operating system all same
Sample belong to a classification, arithmetic mean evaluation is done respectively to the sample of all classification, obtain in each classification application consumption
Electric data.Wherein, the present embodiment server does the cycle that statistics calculates and could be provided as once in a week, it will be understood that of the invention
Embodiment is not limited thereto.
Wherein, server is not processed for the invalid data that each equipment reports, i.e., is not inconsistent for what each equipment reported
The data for closing prescribed form and content do not do statistics calculating processing.The invalid data include:Sampling time is less than setting threshold
The data (this regulation can remove) and sample size of value are less than the classification of prescribed limit.
It is less than the data of given threshold for the sampling time, server screens out before being classified, the sampling time
It is less than or equal to 1 minute less than the given threshold such as sampling time, or less than or equal to half a minute.Server after sorting, weeds out
The sample size is less than the classification of prescribed limit, and the sample size is less than point that prescribed limit is, for example, less than 10 samples
Class.
In the present embodiment, after server gets the relatively data of polymorphic type equipment, it is possible to more accurately count
Go out it is each under the combination of each type the device and operating system apply power consumption data, each apply power consumption etc. so as to more objectively divide
Level.
Server issues described at least one and applies a kind of embodiment of electric quantity consumption data, and server is calculated according to statistics
Power consumption grade is applied using the division of electric quantity consumption data, periodically issues the application power consumption grade to corresponding types and operating system
Equipment.Wherein, divide is using the principle of power consumption grade:Enable to tend to be evenly distributed using number in each grade.Can
With understanding, each principle using power consumption grade of above-mentioned division is only an instantiation cited by inventor, and the present invention is simultaneously
It is not limited to this, different division methods can be used in practical operation as needed.
Server issues described at least one and applies electric quantity consumption data another kind embodiment, and server is calculated according to statistics
Determine to rank using power consumption to using electric quantity consumption data, periodically issue the application power consumption and rank to corresponding types and operation system
The equipment of system.
Server issues described at least one and is calculated using another embodiment of electric quantity consumption data, server according to statistics
To electric quantity consumption value is applied, periodically issue described using electric quantity consumption value to corresponding types and the equipment of operating system.
Finally, application electric quantity consumption data server issued are shown.
The form using electric quantity consumption data that the present embodiment can be issued according to server, to show that the application electricity disappears
Consume data, if for example, server issue it is described application power consumption grade, show it is described application power consumption grade.If issue described answer
Ranked with power consumption, then show the application power consumption seniority among brothers and sisters.If issuing the application electric quantity consumption value, show and described apply electricity
Consumption figures.
An embodiment of the present invention can be shown by list the application add up after electric quantity consumption data.Specifically, row
Each single item in table includes the title of application, icon, power consumption class information or power consumption seniority among brothers and sisters, or electricity consumption value etc..
Wherein, the electric quantity consumption data after the present embodiment can also add up according to the application provide corresponding power consumption size and carry
Show.
The big mere suggestion of power consumption described in the present embodiment is according to each difference using electric quantity consumption data, it may include different is interior
Hold, for example, the content of the big mere suggestion of power consumption can be:" this is few using power consumption, can be safe to use ", " this is applied compared with power consumption,
Please after use, it is removed from backstage ", or " this applies extremely power consumption, is such as not required it to unload it ", herein
It is no longer exhaustive.
If the electric quantity consumption data after being added up with the tabular form displaying application, can directly increase this in the list
Power consumption size reminder item, can also show the big mere suggestion of power consumption for being specifically directed to each application after each single item is unfolded.
Wherein, the electric quantity consumption data after the present embodiment can also add up according to the application provide corresponding power-save operation choosing
.
Power-save operation option described in the present embodiment is the power-save operation option for application provided, it may include:Backstage is clear
Except the application and unload the application etc..If the electric quantity consumption data after being added up with the tabular form displaying application, can be direct
Increase the power-save operation option in the list, can also show the power saving for being specifically directed to each application after each single item is unfolded
Option of operation.The power-save operation option can exist at the same time with the big mere suggestion of above-mentioned power consumption, also can individualism.
Equipment application power consumption management scheme provided in this embodiment, there is provided complete detection, statistics, computing device up to
The actual electric quantity consumption data of a few application, can quantitatively determine the electric quantity consumption data of application, and can further draw
Separate power consumption grade or definite power consumption seniority among brothers and sisters or calculate electricity consumption value, help user that answering compared with power consumption in oneself equipment is accurately positioned
With, and corresponding measure is taken to it.The program saves equipment electricity for auxiliary user and extends stand-by time and plays to pass
Important effect.
As can be seen that the present embodiment stores the electric quantity consumption data accumulation of at least one application, moreover, each application
Electric quantity consumption data can also pass through server end data statistic analysis.Therefore, each is longer using the time, obtains
Sample it is more, calculate this using electric quantity consumption speed it is more accurate more objective.
Embodiment two, equipment application power consumption management device.The device is described in detail with reference to Fig. 3.
Equipment application power consumption management device shown in Fig. 3 is arranged in the equipment, and the equipment includes but not limited to move
Dynamic equipment, the device mainly include:Detection unit 200, power consumption acquiring unit 210, computing unit 220, cumulative display unit
230, further include the first prompt unit 240 and/or the second prompt unit 250.Wherein, power consumption acquiring unit 210 and detection are single
Member 200 is connected, and computing unit 220 is connected with detection unit 200, power consumption acquiring unit 210 and cumulative display unit 230, the
One prompt unit 240 is connected with cumulative display unit 230, and the second prompt unit 250 is connected with cumulative display unit 230.
Wherein, detection unit 200, are primarily adapted for each use feelings using to each hardware in equipment run on detection device
Condition;
Wherein, detection unit 200 described in the present embodiment can be backstage finger daemon.
Detection unit 200 described in the present embodiment can detect each application run within one section of sampling time in equipment to equipment
In each hardware service condition, wherein, at the beginning of each application quarters, front and back switching instant, finish time can be used as and sample
Point, is the sampling time from the time for starting to sample end sampling.For example, for an application, bring into operation from the application
Start to sample, terminate this sampling when carrying out front and back switching to the application, start simultaneously at second of sampling, terminate to the application
Operation carries out terminating second of sampling during front and back switching again.The detection unit 200 can also carry out in real time, without office
It is limited to quarter, front and back switching instant and finish time at the beginning of applying.Therefore, detection of the present embodiment to detection unit 200
Opportunity and duration are not limited.
Each application run on 200 detection device of detection unit includes the service condition of each hardware in equipment:If
Standby upper operation is respectively applied in front and back CPU usage, memory usage, each hardware usage time etc..For different hardware
Need the information of service condition that counts different, for example, for network, it is necessary to count respectively using flow;For
GPS (Global Positioning System, worldwide navigation positioning system), it is necessary to count front and back positioning time, use
Which kind of location technology (GPS, wifi, cellular data base station etc.), and used positioning accuracy (in units of rice);For indigo plant
Tooth is, it is necessary to which statistics application uses the time span of bluetooth, and the data volume for passing through Bluetooth transmission;For screen, it is necessary to answer
During with front stage operation, the average value of each pixel value shown on timing acquisition screen (time interval can be self-defined, such as 1 point
Clock is once), then calculate the service condition that must be applied to screen pixels.
Wherein, power consumption acquiring unit 210, is primarily adapted for obtaining equipment total power consumption by system kernel interface;
The present embodiment, power consumption acquiring unit 210 can obtain the equipment total power consumption by system kernel interface, specifically
Including:Equipment total power consumption is obtained by system kernel interface, wherein, it can pass through institute for equipment total power consumption in the sampling time
The equipment total power consumption of acquisition subtracts the equipment total power consumption obtained during last time sampling and is calculated.
Wherein, computing unit 220, are primarily adapted for according to described each using to the service condition of each hardware in equipment and in advance
The electricity consumption value of each hardware first set, based on the equipment total power consumption, calculates at least one electric quantity consumption number applied
According to;
Wherein, each hardware electricity consumption value set in advance described in the present embodiment, is drawn by great amount of samples test and statistics
Value, a kind of method of each hardware electricity consumption value of setting of embodiment includes:
First, when testing a hardware, other hardware capabilities are closed, avoid other hardware to tested hardware consumption
The influence of electric speed;
Then, tested respectively under a variety of usage scenarios, obtain the tested hardware under the multiple usage scenario
Multiple power consumption rates;
It should be noted that the present embodiment during the test, takes into full account that the various actual use scenes of each hardware are come
Tested, to obtain more objective, accurate conclusion.For example, being directed to GPS, in test, user can be tested respectively and is being continued
Displacement, intermittent displacement and the data in the opposing stationary period.Held for example, getting 10000 parts respectively by test
The data of continuous displacement, the data of 10000 parts of intermittent displacements, and (sample data is with file for 10000 parts of opposing stationary data
Form be automatically saved on equipment local disk, every part of data disappear comprising time interval length and the electricity in this period
Consumption), calculate the power consumption rate under lasting displacement respectively afterwards, the power consumption rate of intermittent displacement, and it is opposing stationary when
Power consumption rate.An arithmetic mean is done to the power consumption rate being calculated under above-mentioned different situations again, to obtain the equipment each
GPS average consumption speed under kind positioning usage scenario.
Finally, different power consumptions of the hardware under the multiple usage scenario are set according to the multiple power consumption rate
Value.
Due to same hardware, in different use states, its electricity consumption value is different, same hardware may be directed to different uses
State is tested, so as to set different electricity consumption values.For example, be directed to GPS, it uses different location technology GPS, wifi, bee
During nest data basestation, the electricity consumption value of setting is different.For screen, the electricity consumption value of its different pixels range set is different.
Wherein, a kind of embodiment computing unit 220 calculate at least one application electric quantity consumption data method it is as follows:
First, electricity consumption value using duration and the set in advance each hardware of each application to each hardware in equipment is calculated
Product, obtain it is each to apply the electric quantity consumption data in the duration be respectively C1, C2...Cn, n are positive integer;
Afterwards, the summation of the electric quantity consumption data in the duration is respectively applied to be denoted as C, C=C1+C2+...+Cn;
Then, calculate the equipment total power consumption S with it is above-mentioned be calculated respectively apply the electric quantity consumption in the duration
The ratio of the summation C of data, is denoted as F, F=S/C;In the present embodiment, the electric quantity consumption data in the duration are applied when each
When summation C is equal to the equipment total power consumption S, then described respectively to apply the electric quantity consumption data in the duration be C1,
C2...Cn。
Finally, by C1 × F, C2 × F...Cn × F adjustment is each applies the electric quantity consumption data in the duration, obtains institute
State the electric quantity consumption data of at least one application.
One instantiation is as follows:
It is assumed that it is respectively c1, c2, c3 to have used hardware three kinds of hardware electricity consumption values of three kinds of consumption electricity using 1, this section
The run time of three kinds of hardware is respectively t1, t2, t3 in duration, then this applies the electric quantity consumption data in this duration to be:C1
=c1*t1+c2*t2+c3*t3;It is assumed that we test the data of 4 applications, it is respectively:C1, C2, C3, C4;It is acquired this when
The total power consumption of equipment is S in length, F=S/ (C1+C2+C3+C4) is made, if F!=1 (F is not equal to 1), then adjust each application electricity
Measuring consumption data is respectively:C1 '=C1 × F, C2 '=C2 × F, C3 '=C3 × F, C4 '=C4 × F, the electricity finally respectively applied
Consumption data is respectively C1 ', C2 ', C3 ', C4 '.
An above-mentioned example for cited by inventor, when actually calculating, for the different use states of same hardware,
I.e. different electricity consumption values when can count respectively using duration.
Wherein, the electric quantity consumption data that what the present embodiment was calculated respectively apply are known as the electric quantity consumption speed of application.
Wherein, add up display unit 230, is primarily adapted for the electric quantity consumption number that cumulative at least one application is repeatedly calculated
According to, and the electric quantity consumption data after the application is added up are shown.
The present embodiment is single by cumulative displaying after the electric quantity consumption data of at least one application are calculated in computing unit 220
Member 230 is by the electric quantity consumption data of this application being calculated and the electric quantity consumption number for the corresponding application being calculated before
According to adding up, it is, the electric quantity consumption data being calculated every time to be carried out to cumulative storage, Yi Zhongshi respectively for each application
Apply example can will it is cumulative after the electric quantity consumption data accumulation respectively applied be stored in database.
What the electric quantity consumption data after cumulative display unit 230 adds up the application described in a kind of embodiment were shown
Method is as follows, specifically includes:
1) the electric quantity consumption data division after the cumulative display unit 230 adds up according to the application is using power consumption etc.
Level, shows the application power consumption grade.A kind of electric quantity consumption data after embodiment can directly add up according to the application are drawn
Divide and apply power consumption grade, the electric quantity consumption data after another embodiment can add up the application are averaged, according to average
Power consumption grade is applied in value division.One of which embodiment is divided is using the principle of power consumption grade:Make the application in each grade
Number tends to be evenly distributed, it is to be understood that each principle using power consumption grade of above-mentioned division is only one cited by inventor
Instantiation, the present invention is not limited thereto, can use different division methods in practical operation as needed.Or
2) the electric quantity consumption data after the cumulative display unit 230 adds up according to the application determine to arrange using power consumption
OK, the application power consumption seniority among brothers and sisters is shown;A kind of electric quantity consumption data after embodiment can directly add up according to the application determine
Ranked using power consumption, the electric quantity consumption data after another embodiment can add up the application are averaged, according to average value
Determine to rank using power consumption.Or
3) the electric quantity consumption data after the cumulative display unit 230 adds up according to the application determine to apply electricity consumption value,
Show and described apply electricity consumption value.Electric quantity consumption data after being added up described in the present embodiment according to the application determine to apply electricity consumption value
That is, the electric quantity consumption data after being added up according to the application are averaged applies electricity consumption value as described.
It above are only instantiation of the displaying cited by inventor using electric quantity consumption data, but the present embodiment not office
It is limited to this,
Another embodiment, shown in Fig. 3, the cumulative display unit 230 can further comprise:Report subelement
2310th, receiving subelement 2320 and displaying subelement 2330.
Wherein, subelement 2310 is reported, is primarily adapted for reported data to server, the data reported include:It is described
Using the electric quantity consumption data after adding up, the device type and operating system of the equipment;
When the present embodiment reports the opportunity of 2310 reported data of subelement to server to be unlocked for equipment, and the current net of user
Network is WLAN WiFi (Wireless Fidelity, WLAN).It should be noted that report subelement 2310
Reporting the data by WiFi, can evade the network request of initiation to greatest extent is influencing user equipment just to server
Often use, and unnecessarily consume the flow of user.
Wherein, receiving subelement 2320, are primarily adapted for receiving the application electric quantity consumption data that server periodically issues,
Specifically include:Server periodically does statistics according to the reported data subset type and operating system of multiple devices and calculates, and obtains
At least one applies electric quantity consumption data, the equipment for being periodically issued to corresponding types and operating system;
Wherein, the method that server statistics described in the present embodiment calculate includes:The equipment type uploaded according to user and behaviour
Make system information, at least one after adding up classifies using electric quantity consumption data, equipment type and operating system all same
Sample belong to a classification, arithmetic mean evaluation is done respectively to the sample of all classification, obtain in each classification application consumption
Electric data.Wherein, the present embodiment server does the cycle that statistics calculates and could be provided as once in a week, it will be understood that of the invention
Embodiment is not limited thereto.
Wherein, server is not processed for the invalid data that each equipment reports, i.e., is not inconsistent for what each equipment reported
The data for closing prescribed form and content do not do statistics calculating processing.The invalid data include:Sampling time is less than setting threshold
The data (this regulation can remove) and sample size of value are less than the classification of prescribed limit.
It is less than the data of given threshold for the sampling time, server screens out before being classified, the sampling time
It is less than or equal to 1 minute less than the given threshold such as sampling time, or less than or equal to half a minute.Server after sorting, weeds out
The sample size is less than the classification of prescribed limit, and the sample size is less than point that prescribed limit is, for example, less than 10 samples
Class.
In the present embodiment, after server gets the relatively data of polymorphic type equipment, it is possible to more accurately count
Go out it is each under the combination of each type the device and operating system apply power consumption data, each apply power consumption etc. so as to more objectively divide
Level.
Server issues described at least one and applies a kind of embodiment of electric quantity consumption data, and server is calculated according to statistics
Power consumption grade is applied using the division of electric quantity consumption data, periodically issues the application power consumption grade to corresponding types and operating system
Equipment.Wherein, divide is using the principle of power consumption grade:Enable to tend to be evenly distributed using number in each grade.Can
With understanding, each principle using power consumption grade of above-mentioned division is only an instantiation cited by inventor, and the present invention is simultaneously
It is not limited to this, different division methods can be used in practical operation as needed.
Server issues described at least one and applies electric quantity consumption data another kind embodiment, and server is calculated according to statistics
Determine to rank using power consumption to using electric quantity consumption data, periodically issue the application power consumption and rank to corresponding types and operation system
The equipment of system.
Server issues described at least one and is calculated using another embodiment of electric quantity consumption data, server according to statistics
To electric quantity consumption value is applied, periodically issue described using electric quantity consumption value to corresponding types and the equipment of operating system.
Wherein, subelement 2330 is shown, the application electric quantity consumption data for being primarily adapted for issuing server are opened up
Show.
The form using electric quantity consumption data that the present embodiment displaying subelement 2330 can be issued according to server, to show
The application electric quantity consumption data, if for example, server issues the application power consumption grade, displaying subelement 2330 shows institute
State and apply power consumption grade.If issuing the application power consumption seniority among brothers and sisters, displaying subelement 2330 shows the application power consumption seniority among brothers and sisters.If
The application electric quantity consumption value is issued, then shows that subelement 2330 shows the application electric quantity consumption value.
An embodiment of the present invention add up display unit 230 can be shown by list the application add up after electric quantity consumption
Data.Specifically, each single item in list includes the title of application, icon, power consumption class information or power consumption seniority among brothers and sisters, or power consumption
Value etc..
Wherein, the first prompt unit 240, is primarily adapted for the electric quantity consumption data after adding up according to the application and provides accordingly
The big mere suggestion of power consumption.
The big mere suggestion of power consumption described in the present embodiment is according to each difference using electric quantity consumption data, it may include different is interior
Hold, for example, the content of the big mere suggestion of power consumption can be:" this is few using power consumption, can be safe to use ", " this is applied compared with power consumption,
Please after use, it is removed from backstage ", or " this applies extremely power consumption, is such as not required it to unload it ", herein
It is no longer exhaustive.
If cumulative display unit 230 with tabular form show the application add up after electric quantity consumption data, can be direct
Increase the power consumption size reminder item in the list, can also show the consumption for being specifically directed to each application after each single item is unfolded
TV university mere suggestion.
Wherein, the second prompt unit 250, is primarily adapted for the electric quantity consumption data after adding up according to the application and provides accordingly
Power-save operation option.
Power-save operation option described in the present embodiment is the power-save operation option for application provided, it may include:Backstage is clear
Except the application and unload the application etc..The electricity after if cumulative display unit 230 is added up with the tabular form displaying application disappears
Data are consumed, then can directly increase the power-save operation option in the list, can also show specific pin after each single item is unfolded
To the power-save operation option of each application.The power-save operation option can exist at the same time with the big mere suggestion of above-mentioned power consumption, also can be independent
In the presence of.
The present embodiment realizes the electric quantity consumption data for quantitatively determining application, and can further mark off power consumption etc.
Level or definite power consumption seniority among brothers and sisters calculate electricity consumption value, help user to be accurately positioned compared with the application of power consumption in oneself equipment, and to it
Take corresponding measure.The program, which saves equipment electricity for auxiliary user and extends stand-by time, plays vital work
With.
Meanwhile the present embodiment stores the electric quantity consumption data accumulation of application, moreover, the electric quantity consumption data of the application
The data statistic analysis of server end can be passed through.Therefore, each is longer using the time, and the sample of acquisition is more, calculates
This using electric quantity consumption speed it is more accurate, the power consumption grade finally divided is also more objective.
In conclusion the embodiment of the present invention realizes the electric quantity consumption data for quantitatively determining application, and can correspond to
Electric quantity consumption data are shown, and help user to be accurately positioned compared with the application of power consumption in oneself equipment, so as to shoot the arrow at the target
Is taken to it by corresponding measure for ground.The program plays most important for auxiliary user saving equipment electricity and extension stand-by time
Effect.
A1, equipment application power consumption management method, it includes:
Service condition of each application run on detection device to each hardware in equipment;
The equipment total power consumption is obtained by system kernel interface;
According to power consumption of each application to the service condition of each hardware in equipment and each hardware set in advance
Value, based on the equipment total power consumption, calculates at least one electric quantity consumption data applied;
The electric quantity consumption data that cumulative at least one application is repeatedly calculated, and the electric quantity consumption after the application is added up
Data are shown.
A2, the method as described in A1, wherein, the electric quantity consumption data after the application is added up be shown including:
To server, the data reported include reported data:The application add up after electric quantity consumption data, described
The device type and operating system of equipment;
Server periodically does statistics according to the reported data subset type and operating system of multiple devices and calculates, obtain to
Few one applies electric quantity consumption data, the equipment for being periodically issued to corresponding types and operating system;
The application electric quantity consumption data that server is issued are shown.
A3, the method as described in claim A2, wherein, the opportunity of the reported data to server is:
When equipment unlocks, and user's current network is WLAN WiFi.
A4, the method as described in claim A2, wherein, the application electric quantity consumption data that server is issued carry out
Displaying includes:
Server is calculated according to statistics to be applied power consumption grade using the division of electric quantity consumption data and issues, described in displaying
Using power consumption grade;Or
Server is calculated according to statistics and determines to rank and issue using power consumption using electric quantity consumption data, described in displaying
Ranked using power consumption;Or
Server is calculated using electric quantity consumption value and issues according to statistics, and displaying is described to apply electricity consumption value.
A5, the method as described in claim A1, wherein, the electric quantity consumption data after the application is added up are shown
Including:
Power consumption grade is applied in electric quantity consumption data division after being added up according to the application, shows described application power consumption etc.
Level;Or
Electric quantity consumption data after being added up according to the application determine to rank using power consumption, show the application power consumption row
OK;Or
Electric quantity consumption data after being added up according to the application determine to apply electricity consumption value, and displaying is described to apply electricity consumption value.
A6, the method as described in claim A4 or A5, wherein, the division includes using power consumption grade:
Make to tend to be evenly distributed using number in each grade.
A7, the method as described in claim A1, wherein, further include:
Electric quantity consumption data after being added up according to the application provide the big mere suggestion of corresponding power consumption.
A8, claim A1 into A7 it is any as described in method, wherein, further include:
Electric quantity consumption data after being added up according to the application provide corresponding power-save operation option.
A9, the method as described in claim A1, wherein, presetting the method for each hardware electricity consumption value includes:
When testing a hardware, other hardware capabilities are closed, avoid other hardware to tested hardware power consumption speed
The influence of degree;
Tested respectively under a variety of usage scenarios, obtain multiple consumptions of the tested hardware under the multiple usage scenario
Electric speed;
Different electricity consumption values of the hardware under the multiple usage scenario are set according to the multiple power consumption rate.
A10, the method as described in claim A1, wherein, the use feelings according to each application to each hardware in equipment
The electricity consumption value of condition and each hardware set in advance, based on the equipment total power consumption, calculates at least one electricity applied
Amount consumption data includes:
Calculate multiplying using duration and the electricity consumption value of the set in advance each hardware of each application to each hardware in equipment
Product, obtain it is each to apply the electric quantity consumption data in the duration be respectively C1, C2...Cn, n are positive integer;
The summation of the electric quantity consumption data in the duration is respectively applied to be denoted as C, C=C1+C2+...+Cn;
Calculate the equipment total power consumption S with it is above-mentioned be calculated respectively apply the electric quantity consumption data in the duration
The ratio of summation C, is denoted as F, F=S/C;
By C1 × F, C2 × F...Cn × F adjustment is each to apply the electric quantity consumption data in the duration, obtain it is described extremely
The electric quantity consumption data of a few application.
B11, equipment application power consumption management device, it includes:
Detection unit, is adapted to detect for each service condition using to each hardware in equipment run in equipment;
Power consumption acquiring unit, suitable for obtaining equipment total power consumption by system kernel interface;
Computing unit, suitable for according to each application to the service condition of each hardware in equipment and it is set in advance described in
The electricity consumption value of each hardware, based on the equipment total power consumption, calculates at least one electric quantity consumption data applied;
Cumulative display unit, the electric quantity consumption data being repeatedly calculated suitable for cumulative at least one application, and should by described in
It is shown with the electric quantity consumption data after cumulative.
B12, the device as described in claim B11, wherein, the cumulative display unit further comprises:
Subelement is reported, suitable for reported data to server, the data reported include:The application add up after electricity
Measure consumption data, the device type and operating system of the equipment;
Receiving subelement, suitable for receiving the application electric quantity consumption data that server periodically issues, specifically includes:Service
Device periodically does statistics according to the reported data subset type and operating system of multiple devices and calculates, and obtains at least one and applies electricity
Consumption data, the equipment for being periodically issued to corresponding types and operating system;
Show subelement, the application electric quantity consumption data suitable for server is issued are shown.
B13, the device as described in claim B12, wherein, the opportunity for reporting subelement reported data to server
For:
When equipment unlocks, and user's current network is WLAN WiFi.
B14, the device as described in claim B12, wherein,
Server is calculated according to statistics to be applied power consumption grade using the division of electric quantity consumption data and issues, the displaying
The subelement displaying application power consumption grade;Or
Server is calculated according to statistics and determines to rank and issue using power consumption using electric quantity consumption data, the displaying
The subelement displaying application power consumption seniority among brothers and sisters;Or
Server is calculated using electric quantity consumption value and issues according to statistics, and the displaying subelement shows the application
Electricity consumption value.
B15, the device as described in claim B11, wherein, the cumulative display unit application is added up after electricity
Amount consumption data be shown including:
Power consumption grade is applied in electric quantity consumption data division after the cumulative display unit adds up according to the application, is shown
The application power consumption grade;Or
Electric quantity consumption data after the cumulative display unit adds up according to the application determine to rank using power consumption, displaying
The application power consumption seniority among brothers and sisters;Or
Electric quantity consumption data after the cumulative display unit adds up according to the application determine to apply electricity consumption value, displaying institute
State and apply electricity consumption value.
B16, the device as described in claim B11, wherein, further include:
First prompt unit, provides corresponding power consumption size suitable for the electric quantity consumption data after adding up according to the application and carries
Show.
B17, claim B11 into B16 it is any as described in device, wherein, further include:
Second prompt unit, corresponding power-save operation choosing is provided suitable for the electric quantity consumption data after adding up according to the application
.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize that the virus defense in electronic equipment according to embodiments of the present invention fills
The some or all functions of some or all components in putting.The present invention is also implemented as being used to perform described here
Method some or all equipment or program of device (for example, computer program and computer program product).This
The program of the realization present invention of sample can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtained, and either be provided or with any other on carrier signal
Form provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and this
Field technology personnel can design alternative embodiment without departing from the scope of the appended claims.In claim
In, any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded for depositing
In element or step not listed in the claims.Word "a" or "an" before element do not exclude the presence of it is multiple this
The element of sample.The present invention can be by means of including the hardware of some different elements and by means of properly programmed computer
Realize.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware
Embody.Word first, second and third use do not indicate that any order.These words can be explained and run after fame
Claim.
Claims (18)
1. equipment application power consumption management method, it includes:
Service condition of each application run on detection device to each hardware in equipment;
The equipment total power consumption is obtained by system kernel interface;
According to each application to the electricity consumption value of the service condition of each hardware in equipment and each hardware set in advance, base
In the equipment total power consumption, at least one electric quantity consumption data applied are calculated;
The electric quantity consumption data that cumulative at least one application is repeatedly calculated, and the electric quantity consumption data after the application is added up
It is shown.
The electric quantity consumption data after 2. the method for claim 1, wherein the application is added up be shown including:
To server, the data reported include reported data:The application add up after electric quantity consumption data, the equipment
Device type and operating system;
Server periodically does statistics according to the reported data subset type and operating system of multiple devices and calculates, and obtains at least one
Using electric quantity consumption data, the equipment for being periodically issued to corresponding types and operating system;
The application electric quantity consumption data that server is issued are shown.
3. method as claimed in claim 2, wherein, the opportunity of the reported data to server is:
When equipment unlocks, and user's current network is WLAN WiFi.
4. method as claimed in claim 2, wherein, the application electric quantity consumption data that server is issued are shown bag
Include:
Server is calculated according to statistics to be applied power consumption grade using the division of electric quantity consumption data and issues, and shows the application
Power consumption grade;Or
Server is calculated according to statistics and determines to rank and issue using power consumption using electric quantity consumption data, shows the application
Power consumption is ranked;Or
Server is calculated using electric quantity consumption value and issues according to statistics, and displaying is described to apply electricity consumption value.
The electric quantity consumption data after 5. the method for claim 1, wherein the application is added up be shown including:
Power consumption grade is applied in electric quantity consumption data division after being added up according to the application, shows the application power consumption grade;Or
Electric quantity consumption data after being added up according to the application determine to rank using power consumption, show the application power consumption seniority among brothers and sisters;Or
Electric quantity consumption data after being added up according to the application determine to apply electricity consumption value, and displaying is described to apply electricity consumption value.
6. method as described in claim 4 or 5, wherein, the division includes using power consumption grade:
Make to tend to be evenly distributed using number in each grade.
7. the method for claim 1, wherein further include:
Electric quantity consumption data after being added up according to the application provide the big mere suggestion of corresponding power consumption.
8. such as the method any one of claim 1 to 5 and 7, wherein, further include:
Electric quantity consumption data after being added up according to the application provide corresponding power-save operation option.
9. method as claimed in claim 6, wherein, further include:
Electric quantity consumption data after being added up according to the application provide corresponding power-save operation option.
10. the method for claim 1, wherein presetting the method for each hardware electricity consumption value includes:
When testing a hardware, other hardware capabilities are closed, avoid other hardware to being tested hardware power consumption rate
Influence;
Tested respectively under multiple usage scenarios, obtain multiple power consumptions of the tested hardware under the multiple usage scenario
Speed;
Different electricity consumption values of the hardware under multiple usage scenarios are set according to the multiple power consumption rate.
11. the method for claim 1, wherein according to each application to the service condition of each hardware in equipment and
The electricity consumption value of each hardware set in advance, based on the equipment total power consumption, calculates at least one electric quantity consumption applied
Data include:
Product using duration and the electricity consumption value of the set in advance each hardware of each application to each hardware in equipment is calculated, is obtained
To apply the electric quantity consumption data in the duration be respectively C1 to each, and C2 ... Cn, n are positive integer;
The summation of the electric quantity consumption data in the duration is respectively applied to be denoted as C, C=C1+C2+ ...+Cn;
Calculate the equipment total power consumption S and the above-mentioned summation for respectively applying the electric quantity consumption data in the duration being calculated
The ratio of C, is denoted as F, F=S/C;
By C1 × F, C2 × F ... Cn × F adjustment is each to apply the electric quantity consumption data in the duration, and obtaining described at least one should
Electric quantity consumption data.
12. equipment application power consumption management device, it includes:
Detection unit, is adapted to detect for each service condition using to each hardware in equipment run in equipment;
Power consumption acquiring unit, suitable for obtaining equipment total power consumption by system kernel interface;
Computing unit, suitable for according to each application to the service condition of each hardware in equipment and set in advance described each hard
The electricity consumption value of part, based on the equipment total power consumption, calculates at least one electric quantity consumption data applied;
Cumulative display unit, the electric quantity consumption data being repeatedly calculated suitable for cumulative at least one application, and the application is tired out
Electric quantity consumption data after adding are shown.
13. device as claimed in claim 12, wherein, the cumulative display unit further comprises:
Subelement is reported, suitable for reported data to server, the data reported include:Electricity after the application adds up disappears
Consume data, the device type and operating system of the equipment;
Receiving subelement, suitable for receiving the application electric quantity consumption data that server periodically issues, specifically includes:Server root
Statistics is periodically done according to the reported data subset type and operating system of multiple devices to calculate, and is obtained at least one and is applied electric quantity consumption
Data, the equipment for being periodically issued to corresponding types and operating system;
Show subelement, the application electric quantity consumption data suitable for server is issued are shown.
14. device as claimed in claim 13, wherein, it is described report subelement reported data to server opportunity be:
When equipment unlocks, and user's current network is WLAN WiFi.
15. device as claimed in claim 13, wherein,
Server is calculated according to statistics to be applied power consumption grade using the division of electric quantity consumption data and issues, and displaying is single
The member displaying application power consumption grade;Or
Server is calculated according to statistics and determines to rank and issue using power consumption using electric quantity consumption data, and displaying is single
The member displaying application power consumption seniority among brothers and sisters;Or
Server is calculated using electric quantity consumption value and issues according to statistics, and the displaying subelement displaying is described to apply power consumption
Value.
16. device as claimed in claim 12, wherein, the cumulative display unit application is added up after electric quantity consumption
Data be shown including:
Power consumption grade is applied in electric quantity consumption data division after the cumulative display unit adds up according to the application, described in displaying
Using power consumption grade;Or
Electric quantity consumption data after the cumulative display unit adds up according to the application determine to rank using power consumption, described in displaying
Ranked using power consumption;Or
Electric quantity consumption data after the cumulative display unit adds up according to the application are determined to apply electricity consumption value, answered described in displaying
Use electricity consumption value.
17. device as claimed in claim 12, wherein, further include:
First prompt unit, the big mere suggestion of corresponding power consumption is provided suitable for the electric quantity consumption data after adding up according to the application.
18. the device as any one of claim 12 to 17, wherein, further include:
Second prompt unit, corresponding power-save operation option is provided suitable for the electric quantity consumption data after adding up according to the application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410219205.9A CN105100504B (en) | 2014-05-22 | 2014-05-22 | Equipment application power consumption management method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410219205.9A CN105100504B (en) | 2014-05-22 | 2014-05-22 | Equipment application power consumption management method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105100504A CN105100504A (en) | 2015-11-25 |
CN105100504B true CN105100504B (en) | 2018-04-27 |
Family
ID=54579998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410219205.9A Active CN105100504B (en) | 2014-05-22 | 2014-05-22 | Equipment application power consumption management method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105100504B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824740A (en) * | 2015-11-26 | 2016-08-03 | 维沃移动通信有限公司 | Method for determining power consumption of application and terminal |
CN105653459A (en) * | 2016-01-13 | 2016-06-08 | 中国石油集团东方地球物理勘探有限责任公司 | Application power consumption measuring method and device |
US10509456B2 (en) * | 2016-05-06 | 2019-12-17 | Quanta Computer Inc. | Server rack power management |
CN106326069A (en) * | 2016-08-19 | 2017-01-11 | 北京小米移动软件有限公司 | Method, device and system for detecting power consumption as well as equipment |
CN107885307B (en) * | 2016-09-30 | 2020-09-18 | 北京小米移动软件有限公司 | Equipment control method and device |
CN106909496B (en) * | 2017-02-21 | 2021-08-31 | 北京小米移动软件有限公司 | Information display method and device |
CN109302735A (en) * | 2017-07-24 | 2019-02-01 | 中兴通讯股份有限公司 | A kind of method and mobile terminal controlling power consumption |
CN107515811B (en) * | 2017-08-31 | 2020-07-28 | 麒麟合盛网络技术股份有限公司 | Method and device for acquiring power consumption of application program |
CN108989548A (en) * | 2018-06-21 | 2018-12-11 | 上海二三四五网络科技有限公司 | A kind of control method and control device detecting mobile terminal application power consumption |
CN111355848B (en) * | 2020-03-11 | 2021-04-13 | Oppo广东移动通信有限公司 | Positioning control method and device of electronic equipment, storage medium and electronic equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8032317B2 (en) * | 2008-05-15 | 2011-10-04 | The Nielsen Company (Us), Llc | System and methods for metering and analyzing energy consumption of events within a portable device |
CN102918473B (en) * | 2010-06-07 | 2015-07-08 | 松下电器(美国)知识产权公司 | Mobile-type information processing terminal |
US20120210150A1 (en) * | 2011-02-10 | 2012-08-16 | Alcatel-Lucent Usa Inc. | Method And Apparatus Of Smart Power Management For Mobile Communication Terminals |
WO2012149738A1 (en) * | 2011-09-14 | 2012-11-08 | 华为技术有限公司 | Power management method and device for mobile terminal |
CN102811289B (en) * | 2012-08-15 | 2014-12-10 | 东莞宇龙通信科技有限公司 | Terminal and power management method of same |
-
2014
- 2014-05-22 CN CN201410219205.9A patent/CN105100504B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105100504A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100504B (en) | Equipment application power consumption management method and apparatus | |
Xu et al. | V-edge: Fast self-constructive power modeling of smartphones based on battery voltage dynamics | |
TWI777004B (en) | Marketing information push equipment, devices and storage media | |
CN103323786B (en) | Method, device and equipment for detecting service life of battery | |
CN104967731B (en) | A kind of terminal notifying method and terminal | |
Heilbrunn et al. | Tools for gamification analytics: A survey | |
CN104932966A (en) | Method and device for detecting false downloading times of application software | |
CN112650643B (en) | Electric quantity calibration method and device and electronic equipment | |
CN109711897A (en) | Day any active ues quantity prediction technique and device | |
CN109309596A (en) | A kind of method for testing pressure, device and server | |
CN105912372A (en) | Application program disable method | |
CN108267703A (en) | Electric quantity metering accuracy checking method, its device and computer storage media | |
CN110334013A (en) | Test method, device and the electronic equipment of decision engine | |
CN110060085A (en) | It is a kind of to parse method, system and the equipment being distributed under advertising objective crowd line | |
CN112346962B (en) | Control data testing method and device applied to control testing system | |
KR101560760B1 (en) | Application usability measurement service providing system | |
CN107729144B (en) | Application control method and device, storage medium and electronic equipment | |
CN107728772B (en) | Application processing method and device, storage medium and electronic equipment | |
CN109376051A (en) | Detect the method and terminal device of mobile device application program power consumption | |
CN109725785A (en) | Task execution situation method for tracing, device, equipment and readable storage medium storing program for executing | |
CN107544080A (en) | Trace generator method | |
CN106776976A (en) | Browse object displaying method, device and equipment | |
JP6863153B2 (en) | Dry weight estimation program, dry weight estimation method and dry weight estimation device | |
WO2019085742A1 (en) | Background application cleaning method and apparatus, and storage medium and electronic device | |
Ma et al. | Research on online measurement method of smartphone energy consumption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220720 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |