CN105404575A - Energy consumption measurement method and apparatus for application in mobile terminal - Google Patents
Energy consumption measurement method and apparatus for application in mobile terminal Download PDFInfo
- Publication number
- CN105404575A CN105404575A CN201510705764.5A CN201510705764A CN105404575A CN 105404575 A CN105404575 A CN 105404575A CN 201510705764 A CN201510705764 A CN 201510705764A CN 105404575 A CN105404575 A CN 105404575A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- application
- component
- energy consumption
- application code
- 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.)
- Pending
Links
- 238000005265 energy consumption Methods 0.000 title claims abstract description 54
- 238000000691 measurement method Methods 0.000 title abstract description 6
- 238000004458 analytical method Methods 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000005516 engineering process Methods 0.000 claims description 6
- 238000005259 measurement Methods 0.000 abstract description 12
- 238000005457 optimization Methods 0.000 abstract 1
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
- G06F11/3062—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3452—Performance evaluation by statistical analysis
-
- 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
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computer Hardware Design (AREA)
- Probability & Statistics with Applications (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Telephone Function (AREA)
Abstract
本发明涉及一种移动终端应用能耗度量方法和装置,包括获取移动终端硬件组件处于不同状态下的功耗值P;运行移动终端应用程序,获取应用代码分析结果Ca,并对分析结果Ca进行描述;结合应用代码分析结果Ca和功耗值P,计算移动终端应用能耗E,实现了应用能耗的准确度量。该方法用于指导开发人员对移动终端应用能耗的度量,解决现有移动终端应用能耗度量的不规范的问题,实现了移动终端应用能耗的优化和降低,在电源条件有限的前提下,增加了持续服务时间。
The present invention relates to a mobile terminal application energy consumption measurement method and device, including obtaining the power consumption value P of the mobile terminal hardware components in different states; running the mobile terminal application program, obtaining the application code analysis result Ca, and analyzing the analysis result Ca Description: Combined with the application code analysis result Ca and power consumption value P, the energy consumption E of the mobile terminal application is calculated, and the accurate measurement of the application energy consumption is realized. This method is used to guide developers to measure the energy consumption of mobile terminal applications, solve the problem of non-standard energy consumption measurement of existing mobile terminal applications, and realize the optimization and reduction of mobile terminal application energy consumption. Under the premise of limited power supply conditions , increasing the service duration.
Description
技术领域technical field
本发明涉及一种度量方法和装置,具体涉及一种移动终端应用能耗度量方法和装置。The present invention relates to a measurement method and device, in particular to a mobile terminal application energy consumption measurement method and device.
背景技术Background technique
近年来,移动终端市场正以迅猛之势快速发展。然而,伴随着电池制造工艺的长年停步不前,能源已成为移动终端设备的发展瓶颈,同时能耗还影响移动终端的可靠性和使用寿命。当前,大量的移动终端都处于长时间运行状态。由于移动终端体积通常都较小,能耗的增大会显著提高终端设备的温度。根据统计,移动设备每15摄氏度温度的提高会使设备失效率增加一倍,较高的温度也会影响设备的使用寿命。因此,对于许多生产生活安全攸关的移动终端设备,研究移动终端应用能耗度量技术显得尤为重要。In recent years, the mobile terminal market is developing rapidly. However, with the long-term stagnation of the battery manufacturing process, energy has become a bottleneck in the development of mobile terminal equipment, and energy consumption also affects the reliability and service life of mobile terminals. Currently, a large number of mobile terminals are in a long-running state. Since mobile terminals are generally small in size, the increase in energy consumption will significantly increase the temperature of the terminal equipment. According to statistics, every 15 degrees Celsius increase in the temperature of mobile devices will double the failure rate of the device, and higher temperatures will also affect the service life of the device. Therefore, for many mobile terminal devices that are critical to the safety of production and life, it is particularly important to study the energy consumption measurement technology of mobile terminal applications.
移动终端应用的能耗度量指的是度量移动终端应用在实际运行时的耗能。目前,无论是工业界还是学术圈,开发工程师还是终端用户,都已开始关注移动终端的能耗问题。然而,对能耗度量的技术存在着度量粒度粗、度量效率低的问题。这些局限性使得大量移动应用或多或少存在能耗浪费问题。The energy consumption measurement of the mobile terminal application refers to measuring the energy consumption of the mobile terminal application during actual operation. At present, both industrial and academic circles, development engineers and end users have begun to pay attention to the energy consumption of mobile terminals. However, the energy consumption measurement technology has the problems of coarse measurement granularity and low measurement efficiency. These limitations make a large number of mobile applications more or less energy-wasting.
发明内容Contents of the invention
针对现有技术的不足,本发明提供一种移动终端应用能耗度量方法和装置,解决了现有终端移动应用能耗度量技术存在的粒度粗、效率低等不良问题。Aiming at the deficiencies of the prior art, the present invention provides a method and device for measuring energy consumption of mobile terminal applications, which solves the disadvantages of coarse granularity and low efficiency existing in existing techniques for measuring energy consumption of mobile terminal applications.
本发明的目的是采用下述技术方案实现的:The object of the present invention is to adopt following technical scheme to realize:
一种移动终端应用能耗度量方法,所述方法包括:A method for measuring energy consumption of a mobile terminal application, the method comprising:
(1)获取移动终端硬件组件处于不同状态下的功耗值P;(1) Obtain the power consumption value P of the mobile terminal hardware components in different states;
(2)运行移动终端应用程序,获取应用代码分析结果Ca,并对分析结果Ca进行描述;(2) Run the mobile terminal application program, obtain the application code analysis result Ca, and describe the analysis result Ca;
(3)结合应用代码分析结果Ca和功耗值P,计算移动终端应用能耗E。(3) Combine the application code analysis result Ca and the power consumption value P to calculate the energy consumption E of the mobile terminal application.
优选的,所述步骤(1)中,移动终端硬件组件包括Display、WiFi和GPS;所述状态包括开启状态、工作状态和关闭状态。Preferably, in the step (1), the hardware components of the mobile terminal include Display, WiFi and GPS; the states include an on state, a working state and an off state.
优选的,所述步骤(1)中,采用功率测量器获取移动终端组件功耗值P;当有应用程序执行时,处理器利用动态电压和频率调节技术DVFS,根据预定义的频率电压表动态调节工作电压和频率;当无应用程序执行时,处理器处于IDLE状态,其功耗值P最低。Preferably, in the step (1), a power measurer is used to obtain the power consumption value P of the mobile terminal components; when an application program is executed, the processor uses the dynamic voltage and frequency adjustment technology DVFS to dynamically Adjust the operating voltage and frequency; when no application program is executed, the processor is in the IDLE state, and its power consumption value P is the lowest.
优选的,所述步骤(2)中获取应用代码分析结果Ca包括,通过应用代码调用所述移动终端的硬件组件类型、组件调用次数、组件调用概率和组件调用时间。Preferably, obtaining the application code analysis result Ca in the step (2) includes calling the hardware component type, component calling times, component calling probability and component calling time of the mobile terminal through the application code.
进一步地,所述应用代码分析结果Ca的表达式为:Further, the expression of the application code analysis result Ca is:
Ca=<S,N,C,t>;Ca = <S, N, C, t>;
其中,S为该应用代码调用的组件类型;其中,S={S1,S2,...,Sm}表示移动终端包含的m类硬件组件;N为该应用代码调用硬件组件的次数;C为该应用代码调用硬件组件的概率;t为该应用代码调用硬件组件的时间。Wherein, S is the component type called by the application code; wherein, S={S1, S2,...,Sm} represents the m-type hardware components contained in the mobile terminal; N is the number of times the application code calls the hardware components; C is The probability that the application code invokes the hardware component; t is the time when the application code invokes the hardware component.
优选的,所述步骤(3)计算移动终端应用能耗E的方法包括:根据组件功耗值P和应用代码分析结果Ca,获取应用能耗E,其表达式为:Preferably, the method for calculating the application energy consumption E of the mobile terminal in the step (3) includes: obtaining the application energy consumption E according to the component power consumption value P and the application code analysis result C a , the expression of which is:
式中,表示第i类组件,i∈S,S={S1,S2,...,Sm},其中S表示移动终端包含的硬件组件集合;P(CPU)j为CPU处于第j种状态下的功耗值,tj为CPU处于第j种状态下的时间,Ni j为第i类组件处于第j种状态下的调用次数,Pi j为第i类硬件组件在第j种状态下的功耗值,Ci j为第i类硬件组件在第j种状态下的调用概率,ti j为第i类硬件组件在第j种状态下的调用时间。In the formula, represents the i-th type of components, i∈S, S={S1,S2,...,Sm}, where S represents the set of hardware components contained in the mobile terminal; P(CPU) j means that the CPU is in the j-th state t j is the time when the CPU is in the jth state, N i j is the number of invocations of the i-th type component in the j-th state, P i j is the i-th hardware component in the j-th state The power consumption value in the state, C i j is the invocation probability of the i-type hardware component in the j-state, and t i j is the invocation time of the i-type hardware component in the j-state.
一种移动终端应用能耗度量装置,所述装置包括:控制单元、功率测量器、时间测量器、代码分析单元、执行单元和移动终端硬件组件;与控制单元相连的代码分析单元分别与移动终端硬件组件和执行单元相互连接;所述移动终端硬件组件分别与功率测量器和时间测量器相连。其中,A mobile terminal application energy consumption measurement device, the device includes: a control unit, a power measurer, a time measurer, a code analysis unit, an execution unit and a mobile terminal hardware component; the code analysis unit connected to the control unit is connected to the mobile terminal respectively The hardware component and the execution unit are connected to each other; the mobile terminal hardware component is connected to the power measuring device and the time measuring device respectively. in,
所述控制单元,用于运行移动终端应用程序,调用应用代码;The control unit is used to run the mobile terminal application program and call the application code;
所述代码分析单元,用于获取应用代码分析结果Ca;The code analysis unit is used to obtain the application code analysis result Ca;
所述功率测量器,用于获取移动终端组件功耗值P;The power measuring device is used to obtain the power consumption value P of the mobile terminal components;
所述时间测量器,用于记录移动终端硬件组件在不同状态下的调用时间;The time measurer is used to record the call time of the mobile terminal hardware components in different states;
所述执行单元,用于计算移动终端应用能耗E。The execution unit is configured to calculate the energy consumption E of the mobile terminal application.
与现有技术比,本发明达到的有益效果是:Compared with prior art, the beneficial effect that the present invention reaches is:
本发明通过对移动终端硬件组件的能耗分析,获取各个组件的能耗值,再根据应用代码分析结果对应用涉及的组件进行加权计算,得出一种移动终端应用的能耗度量方法和装置,指导开发人员和业务人员对移动终端应用能耗的度量。引入了组件能耗值的获取、应用代码分析以及应用能耗分析,从而实现移动终端应用能耗的优化和降低,在电源条件有限的前提下,增加持续服务的时间。The present invention obtains the energy consumption value of each component by analyzing the energy consumption of the hardware components of the mobile terminal, and then performs weighted calculation on the components involved in the application according to the analysis result of the application code, and obtains a method and device for measuring the energy consumption of the mobile terminal application , to guide developers and business personnel to measure the energy consumption of mobile terminal applications. The acquisition of component energy consumption values, application code analysis, and application energy consumption analysis are introduced, so as to optimize and reduce the energy consumption of mobile terminal applications, and increase the continuous service time under the premise of limited power conditions.
解决了现有移动终端应用能耗度量的不规范,能够指导更规范、准确的应用能耗度量。It solves the irregularity of energy consumption measurement of existing mobile terminal applications, and can guide more standardized and accurate application energy consumption measurement.
附图说明Description of drawings
图1为本发明提供的移动终端应用能耗度量方法流程图;FIG. 1 is a flowchart of a method for measuring energy consumption of mobile terminal applications provided by the present invention;
图2为本发明提供的移动终端应用能耗度量装置结构示意图;FIG. 2 is a schematic structural diagram of a mobile terminal application energy consumption measuring device provided by the present invention;
具体实施方式detailed description
下面结合附图对本发明的具体实施方式作进一步的详细说明。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.
如图1所示,一种移动终端应用能耗度量方法,所述方法包括:As shown in Figure 1, a mobile terminal application energy consumption measurement method, the method includes:
(1)获取移动终端硬件组件处于不同状态下的功耗值P(Componentspowerconsumptionvalues),移动终端硬件组件包括Display、WiFi、GPS和NIC(networkinterfacecard)等;所述不同状态包括开启状态、工作状态和关闭状态等。(1) Obtain the power consumption value P (Componentspowerconsumptionvalues) of the mobile terminal hardware components in different states, the mobile terminal hardware components include Display, WiFi, GPS and NIC (network interface card) etc.; the different states include open state, working state and closed status etc.
步骤(1)中,采用功率测量器获取移动终端组件功耗值P;例如通过控制单元控制移动终端某个组件,使该组件处于开启状态(ON),通过功率测量器得出该组件处于该状态下的功耗值;通过控制单元控制移动终端应用运行,并控制该组件处于工作状态(ACTIVE),通过功率测量器得出该组件处于该状态下的功耗值。参照上面方式,通过控制单元控制移动终端各个组件,使各组件处于各个工作状态,测量出具体的功耗值,从而计算出该组件处于不同状态下的功耗值P。(4)根据获取的各个组件的在不同状态下的功耗值建立组件功耗值表,如表1所示。In step (1), the power consumption value P of the mobile terminal component is obtained by using the power measuring device; for example, a certain component of the mobile terminal is controlled by the control unit to make the component in the ON state (ON), and the power measuring device is used to obtain the power consumption value P of the component. The power consumption value in the state; the mobile terminal application is controlled by the control unit, and the component is controlled to be in the working state (ACTIVE), and the power consumption value of the component in this state is obtained through the power measuring device. Referring to the above method, each component of the mobile terminal is controlled by the control unit, so that each component is in each working state, and the specific power consumption value is measured, so as to calculate the power consumption value P of the component in different states. (4) Establish a component power consumption value table according to the obtained power consumption values of each component in different states, as shown in Table 1.
硬件组件状态与对应功耗表Hardware component status and corresponding power consumption table
当有应用程序执行时,处理器利用动态电压和频率调节技术DVFS,根据预定义的频率电压表动态调节工作电压和频率;当无应用程序执行时,处理器处于IDLE状态,其功耗值P最低。When there is an application program executing, the processor uses the dynamic voltage and frequency adjustment technology DVFS to dynamically adjust the operating voltage and frequency according to the predefined frequency voltmeter; when no application program is executing, the processor is in the IDLE state, and its power consumption value P lowest.
例如Android移动终端各组件功耗值P可以根据应用程序框架提供的能耗分析器配置文件(PowerProfile.xml)获得。当无应用程序执行时,处理器处于IDLE状态,具有最低功耗。当应用程序在处理器上执行时,处理器利用动态电压和频率调节技术(dynamicvoltageandfrequencyscale,DVFS),根据预定义的频率电压表动态调节工作电压和频率以节省电池电能。For example, the power consumption value P of each component of an Android mobile terminal can be obtained according to an energy profiler configuration file (PowerProfile.xml) provided by the application framework. When no application program is executing, the processor is in the IDLE state with minimum power consumption. When the application program is executed on the processor, the processor uses dynamic voltage and frequency scale (DVFS) technology to dynamically adjust the operating voltage and frequency according to a predefined frequency voltmeter to save battery power.
(2)运行移动终端应用程序,获取应用代码分析结果Ca(Codeanalysis),并对分析结果Ca进行描述;步骤(2)中获取应用代码分析结果Ca包括,通过应用代码调用所述移动终端的硬件组件类型、组件调用次数、组件调用概率和组件调用时间。(2) Run the mobile terminal application program, obtain the application code analysis result Ca (Code analysis), and describe the analysis result Ca; obtain the application code analysis result Ca in the step (2) and include calling the hardware of the mobile terminal by the application code Component type, number of component calls, component call probability, and component call time.
所述应用代码分析结果Ca的表达式为:The expression of the application code analysis result Ca is:
Ca=<S,N,C,t>;Ca = <S, N, C, t>;
其中,S为该应用代码调用的组件类型;其中,S={S1,S2,...,Sm}表示移动终端包含的m类硬件组件;N为该应用代码调用硬件组件的次数;C为该应用代码调用硬件组件的概率;t为该应用代码调用硬件组件的时间。Wherein, S is the component type called by the application code; wherein, S={S1, S2,...,Sm} represents the m-type hardware components contained in the mobile terminal; N is the number of times the application code calls the hardware components; C is The probability that the application code invokes the hardware component; t is the time when the application code invokes the hardware component.
(3)结合应用代码分析结果Ca和功耗值P,计算移动终端应用能耗E(ApplicationEnergyConsumptionCalculation)。其方法包括:根据组件功耗值P和应用代码分析结果Ca,获取应用能耗E的表达式为:(3) Combine the application code analysis result Ca and the power consumption value P to calculate the application energy consumption E (ApplicationEnergyConsumptionCalculation) of the mobile terminal. The method includes: according to the component power consumption value P and the application code analysis result C a , the expression for obtaining the application energy consumption E is:
式中,表示第i类组件,i∈S,S={S1,S2,...,Sm},其中S表示移动终端包含的硬件组件集合;P(CPU)j为CPU处于第j种状态下的功耗值,tj为CPU处于第j种状态下的时间,Ni j为第i类组件处于第j种状态下的调用次数,Pi j为第i类硬件组件在第j种状态下的功耗值,Ci j为第i类硬件组件在第j种状态下的调用概率,ti j为第i类硬件组件在第j种状态下的调用时间。In the formula, represents the i-th type of components, i∈S, S={S1,S2,...,Sm}, where S represents the set of hardware components contained in the mobile terminal; P(CPU) j means that the CPU is in the j-th state t j is the time when the CPU is in the jth state, N i j is the number of invocations of the i-type component in the j-th state, P i j is the i-th hardware component in the j-th state The power consumption value in the state, C i j is the calling probability of the i-type hardware component in the j-state, and t i j is the calling time of the i-type hardware component in the j-state.
如图2所示,一种移动终端应用能耗度量装置,所述装置包括:控制单元、功率测量器、时间测量器、代码分析单元、执行单元和移动终端硬件组件;与控制单元相连的代码分析单元分别与移动终端硬件组件和执行单元相互连接;所述移动终端硬件组件分别与功率测量器和时间测量器相连。其中,As shown in Figure 2, a mobile terminal application energy consumption measurement device, the device includes: a control unit, a power measurer, a time measurer, a code analysis unit, an execution unit and a mobile terminal hardware component; the code connected to the control unit The analysis unit is connected with the mobile terminal hardware component and the execution unit respectively; the mobile terminal hardware component is connected with the power measuring device and the time measuring device respectively. in,
所述控制单元,用于运行移动终端应用程序,调用应用代码;The control unit is used to run the mobile terminal application program and call the application code;
所述代码分析单元,用于获取应用代码分析结果Ca;The code analysis unit is used to obtain the application code analysis result Ca;
所述功率测量器,用于获取移动终端组件功耗值P;The power measuring device is used to obtain the power consumption value P of the mobile terminal components;
所述时间测量器,用于记录移动终端硬件组件在不同状态下的调用时间;The time measurer is used to record the call time of the mobile terminal hardware components in different states;
所述执行单元,用于计算移动终端应用能耗E。The execution unit is configured to calculate the energy consumption E of the mobile terminal application.
为了方便描述,我们假设有如下移动终端应用的度量实例:For the convenience of description, we assume the following measurement instances of mobile terminal applications:
某公司计划测量GT-I9108移动终端上的各类移动应用,实现对该终端应用能耗的度量。按照本专利移动终端应用能耗的度量方法进行分析,具体实施例如下:A company plans to measure various mobile applications on the GT-I9108 mobile terminal to measure the energy consumption of the terminal applications. According to the measurement method of the application energy consumption of the mobile terminal of this patent, the specific examples are as follows:
1、下表用于获取GT-I9108移动终端上各个组件的功耗值。1. The following table is used to obtain the power consumption value of each component on the GT-I9108 mobile terminal.
2、运行GT-I9108移动终端的地图软件、游戏软件、音乐软件,对这三个应用软件进行应用代码分析。地图软件的应用代码分析结果可用Caa表示,游戏软件的应用代码分析结果可用Cab表示,音乐软件的应用代码分析结果可用Cac表示,Caa=<Si,Ni,Ci,ti>涉及的组件主要包括WiFi、GPS等,各组件在不同状态下对应着各自的Ni,Ci,ti;Cab=<Si,Ni,Ci,ti>涉及的组件主要包括WiFi、Display等,Cac=<Si,Ni,Ci,ti>涉及的组件主要包括WiFi、Bluetooth等。2. Run the map software, game software, and music software of the GT-I9108 mobile terminal, and analyze the application codes of these three application software. The application code analysis result of map software can be represented by Ca a , the application code analysis result of game software can be represented by Ca b , the application code analysis result of music software can be represented by Ca c , Ca a =<S i , N i , C i , t The components involved in i > mainly include WiFi, GPS, etc., and each component corresponds to its own N i , C i , t i in different states; the components involved in Ca b = <S i , N i , C i , t i > It mainly includes WiFi, Display, etc., and the components involved in Ca c =<S i , N i , C i , t i > mainly include WiFi, Bluetooth, etc.
3、根据GT-I9108移动终端组件功耗值表以及应用代码分析结果,确定GT-I9108移动终端地图软件、游戏软件、音乐软件应用能耗的形式化表达方式:3. According to the GT-I9108 mobile terminal component power consumption value table and the application code analysis results, determine the formal expression of the energy consumption of the GT-I9108 mobile terminal map software, game software, and music software applications:
E(t)a=E(CPU)+E2 j+E3 j+Ei j(i,j属于自然数)E(t) a =E(CPU)+E 2 j +E 3 j +E i j (i, j are natural numbers)
E(t)b=E(CPU)+E2 j+E4 j+Ei j(i,j属于自然数)E(t) b =E(CPU)+E 2 j +E 4 j +E i j (i, j are natural numbers)
E(t)c=E(CPU)+E2 j+E5 j+Ei j(i,j属于自然数)E(t) c =E(CPU)+E 2 j +E 5 j +E i j (i, j are natural numbers)
E(CPU)=P(CPU)j*tj;E2 j=N2 j*P2 j*C2 j*t2 j;E3 j=N3 j*P3 j*C3 j*t3 j;E(CPU)=P(CPU) j *t j ; E 2 j =N 2 j *P 2 j *C 2 j *t 2 j ; E 3 j =N 3 j *P 3 j *C 3 j * t 3 j ;
E4 j=N4 j*P4 j*C4 j*t4 j;E5 j=N5 j*P5 j*C5 j*t5 j;E 4 j =N 4 j *P 4 j *C 4 j *t 4 j ; E 5 j =N 5 j *P 5 j *C 5 j *t 5 j ;
Ei j=Ni j*Pi j*Ci j*ti j(i,j属于自然数)E i j =N i j *P i j *C i j *t i j (i, j are natural numbers)
其中,P(CPU)表示CPU处于不同状态下的能耗,E2 j表示WiFi处于不同状态下的能耗,E3 j表示GPS处于不同状态下的能耗,E4 j表示Diaplay处于不同状态下的能耗,E5 j表示Bluetooth处于不同状态下的能耗,Ei j表示某类组件处于不同状态下的能耗。Among them, P(CPU) represents the energy consumption of CPU in different states, E 2 j represents the energy consumption of WiFi in different states, E 3 j represents the energy consumption of GPS in different states, E 4 j represents the energy consumption of Diaplay in different states E 5 j represents the energy consumption of Bluetooth in different states, and E i j represents the energy consumption of certain components in different states.
最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the scope of the claims of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510705764.5A CN105404575A (en) | 2015-10-27 | 2015-10-27 | Energy consumption measurement method and apparatus for application in mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510705764.5A CN105404575A (en) | 2015-10-27 | 2015-10-27 | Energy consumption measurement method and apparatus for application in mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105404575A true CN105404575A (en) | 2016-03-16 |
Family
ID=55470073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510705764.5A Pending CN105404575A (en) | 2015-10-27 | 2015-10-27 | Energy consumption measurement method and apparatus for application in mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105404575A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478824A (en) * | 2020-03-20 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Network card power consumption testing method, device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043697A (en) * | 2010-07-29 | 2011-05-04 | 北京大学 | System unit energy consumption simulation method based on clock cycle precision |
CN103049384A (en) * | 2012-12-29 | 2013-04-17 | 中国科学院深圳先进技术研究院 | Automatic generating frame of multi-core-based multithread limit energy consumption testing source program |
CN103324777A (en) * | 2013-05-21 | 2013-09-25 | 网视科技(杭州)有限公司 | Android application program energy consumption modeling method based on time |
US20130311803A1 (en) * | 2011-01-25 | 2013-11-21 | Zte Corporation | Energy-saving device and method for portable terminal |
CN104461846A (en) * | 2014-12-02 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Method and device for detecting power consumption of application program |
CN104765438A (en) * | 2015-04-29 | 2015-07-08 | 集怡嘉数码科技(深圳)有限公司 | Method for controlling power consumption and mobile terminal |
-
2015
- 2015-10-27 CN CN201510705764.5A patent/CN105404575A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043697A (en) * | 2010-07-29 | 2011-05-04 | 北京大学 | System unit energy consumption simulation method based on clock cycle precision |
US20130311803A1 (en) * | 2011-01-25 | 2013-11-21 | Zte Corporation | Energy-saving device and method for portable terminal |
CN103049384A (en) * | 2012-12-29 | 2013-04-17 | 中国科学院深圳先进技术研究院 | Automatic generating frame of multi-core-based multithread limit energy consumption testing source program |
CN103324777A (en) * | 2013-05-21 | 2013-09-25 | 网视科技(杭州)有限公司 | Android application program energy consumption modeling method based on time |
CN104461846A (en) * | 2014-12-02 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Method and device for detecting power consumption of application program |
CN104765438A (en) * | 2015-04-29 | 2015-07-08 | 集怡嘉数码科技(深圳)有限公司 | Method for controlling power consumption and mobile terminal |
Non-Patent Citations (2)
Title |
---|
SHUAI HAO等: "Estimating Mobile Application Energy", 《ICSE ˊ13 PROCEEDINGS OF THE 2013 INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING》 * |
段林涛等: "Android应用程序能耗分析与建模研究", 《电子科技大学学报》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478824A (en) * | 2020-03-20 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Network card power consumption testing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pramanik et al. | Power consumption analysis, measurement, management, and issues: A state-of-the-art review of smartphone battery and energy usage | |
Corral et al. | A method for characterizing energy consumption in Android smartphones | |
CN105068009B (en) | Battery cycle life Forecasting Methodology | |
Peltonen et al. | Energy modeling of system settings: A crowdsourced approach | |
Kim et al. | Enhancing online power estimation accuracy for smartphones | |
US20130174128A1 (en) | Estimating Application Energy Usage in a Target Device | |
CN102779208B (en) | Sequential accelerated degradation test optimal design method based on relative entropy | |
US8832839B2 (en) | Assessing system performance impact of security attacks | |
Kim et al. | FEPMA: Fine-grained event-driven power meter for android smartphones based on device driver layer event monitoring | |
Khan et al. | Measuring power consumption in mobile devices for energy sustainable app development: A comparative study and challenges | |
Dornauer et al. | Energy-saving strategies for mobile web apps and their measurement: Results from a decade of research | |
CN111198891B (en) | Data source fusion method, electronic device, and non-transitory computer-readable storage medium | |
CN103428320B (en) | Smart cell phone power dissipation estimation method based on model fitting | |
CN105404575A (en) | Energy consumption measurement method and apparatus for application in mobile terminal | |
CN110705768A (en) | Wind power generation power prediction optimization method and device for wind power plant | |
Kamiyama et al. | A model-based energy profiler using online logging for Android applications | |
CN118378011A (en) | Energy balance calculation method, device, electronic equipment and storage medium | |
CN108008340A (en) | A kind of radio energy table power consumption test system | |
CN101894067B (en) | A Statistical Method of Energy Consumption of Embedded Software Based on ARM Instruction Set | |
US20110282603A1 (en) | Techniques for determining platform energy usage | |
Wang et al. | Standby energy analysis and optimization for smartphones | |
Rattagan et al. | Clustering and symbolic regression for power consumption estimation on smartphone hardware subsystems | |
Sieber et al. | Online device-level energy accounting for wireless sensor nodes | |
CN103368188A (en) | Method for determining AGC adjusting volume provided by power system for wind power | |
CN105764086B (en) | A kind of terminal endurance performance detection method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160316 |