CN108415816A - A kind of power consumption calculation method based on android system - Google Patents

A kind of power consumption calculation method based on android system Download PDF

Info

Publication number
CN108415816A
CN108415816A CN201810162276.8A CN201810162276A CN108415816A CN 108415816 A CN108415816 A CN 108415816A CN 201810162276 A CN201810162276 A CN 201810162276A CN 108415816 A CN108415816 A CN 108415816A
Authority
CN
China
Prior art keywords
power consumption
wifi
power
app
cpu
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.)
Withdrawn
Application number
CN201810162276.8A
Other languages
Chinese (zh)
Inventor
张海防
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wanterui Instruments Co Ltd
Original Assignee
Suzhou Wanterui Instruments Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wanterui Instruments Co Ltd filed Critical Suzhou Wanterui Instruments Co Ltd
Priority to CN201810162276.8A priority Critical patent/CN108415816A/en
Publication of CN108415816A publication Critical patent/CN108415816A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3447Performance evaluation by modeling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring 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/3062Monitoring 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of power consumption calculation method based on android system, includes the power consumption system based on android system, and the power consumption system based on android system includes applying power-consuming elements and system power dissipation unit;The calculation formula of the computational methods is:Ptotal=Papp+Psystem;It is described to be using the power consumption calculation formula of power-consuming elements:Papp=∑ Pprocess_CPU+Pwakelock+PDT+Papp_WIFI+Psensor;The power consumption calculation formula of the system power dissipation unit is:Psystem=Pphone+Pradio+Pscreen+PWIFI+Pbluetooth+Pidle.It can be used for analyzing the influence using power-consuming elements and the system power dissipation unit to power consumption, and optimised power consumption carried out in this, as basis, include mainly:(1) programming system daily record (creating component/thread) analysis, it is based on android system daily record, it analyzes and redirects call relation between the life cycle and application program and its component of four big components, four big components include Activity, Service, Content Provider and BroadcastReceiver;(2) user uses the situation, including time, application name, program element etc. of application program.

Description

A kind of power consumption calculation method based on android system
Technical field
The present invention relates to system power dissipation technical field more particularly to a kind of power consumption calculation methods based on android system.
Background technology
For each component of fine granularity real-time analyzer and the power consumption characteristics of application program, and further excavate user Daily behavior, it would be desirable to establish power consumption model.The power consumption of operating system grade models, and has had many grind both at home and abroad Study carefully, in the prior art, following four can be summarized as to software power consumption modeling method:(1) static state of the offline mode to instruction is used It sums respectively with dynamic power consumption, forms instruction level power model;(2) base of the key factor of influence power consumption as macro modeling is selected Eigen, and these influence factors directly determine the granularity of model;(3) the power consumption modeling based on performance counter PMU;(4) Accurate power consumption is carried out using architecture power consumption simulator to model.Embedded behaviour is quantified using the power consumption model of microarchitecture Make system power dissipation, and the power consumption by analyzing kernel execution route, routine and kernel services, excavates opposite power consumption in kernel Software module to instruct optimised power consumption.Above-mentioned power consumption model granularity is too thin, generally requires the support of hardware architecture, opens Sell bigger, it is often more important that have ignored the behavior of upper level applications more or even the behavior of user.
Invention content
In order to solve the above technical problems, the present invention provides a kind of power consumption calculation method based on android system, including base In the power consumption system of android system, the power consumption system based on android system includes applying power-consuming elements and system work( Consume unit;
The calculation formula of the computational methods is:Ptotal=Papp+Psystem
It is described to be using the power consumption calculation formula of power-consuming elements:
Papp=∑ Pprocess_CPU+Pwakelock+PDT+Papp_WIFI+Psensor
The power consumption calculation formula of the system power dissipation unit is:
Psystem=Pphone+Pradio+Pscreen+PWIFI+Pbluetooth+Pidle
Further, in the power consumption calculation formula using power-consuming elements:The Pprocess_CPUFor the CPU of thread Power consumption, the PwakelockFor the power consumption of the WakeLock of application program, the PDTFor the consumption of the data transmission of application program Electricity, the Papp_WiFiThe power consumption of WIFI, the P are used for application programsensorFor the sensor power consumption of application program.
Further, the Pprocess_CPU=∑ ((Tuser_mode+Tkernel_mode)×DCPU_ACTIVE×Sfreq),
The Pwake_lock=∑ Twakelock×DCPU_AWAKE,
The Papp_WIFI=Tapp_WIFI×DWIFI_ON,
The Psensor=Pnormal+TGPS×DGPS_ON,
The PDT=(Bin+Bout)×PperByte
Further, in the power consumption calculation formula of the system power dissipation unit:The PsystemIt is caused for nonusable routine Power consumption, the PphoneTo take the power consumption of phone, the PradioFor varying strength base band it is standby+consumption of signal scanning Electricity, the PscreenFor unlatching+lasting power consumption of difference brightness, the PWiFiFor the power consumption of unlatching+no data transmission operation Amount, the PbluetoothFor the power consumption of unlatching+AT instructions, the PidleFor idle power consumption.
Further, the Pphone=Tphone×DRADIO_ACTIVE,
The Pradio=∑ (Tradio_i×DRADIO_ON_i)+Tscanning×DRADIO_SCANNING,
The Pscreen=Ton×DSCREEN_ON+∑(DSCREEN_FULL×(bi+0.5f)×Tbi),
The PWIFI=TWIFI_on×0×DWIFI_ON+(Tall_WIFI-Tapp_WIFI)×DWIFI_ON,
It is described
The Pidle=DCPU_IDLE×(Ttotal-Tscreen)。
The present invention the power consumption calculation method based on android system, can be used for analyzing the application power-consuming elements with Influence of the system power dissipation unit to power consumption, and optimised power consumption is carried out in this, as basis, include mainly:(1) programming system Daily record (creating component/thread) analysis, that is, be based on android system daily record, analyzes the life cycle of four big components and applies journey Redirect call relation between sequence and its component, four big components include Activity, Service, Content Provider with And BroadcastReceiver;(2) user uses the situation, including time, application name, program element etc. of application program.
Specific implementation mode
Embodiments of the present invention are described below in detail, the embodiments described below is exemplary, it is intended to for explaining The present invention, and be not considered as limiting the invention.
The present invention provides a kind of power consumption calculation method based on android system, this computational methods uses Android systems The included electric quantity consumption statistic algorithm of system carries out power consumption calculating, and the application program in android system is distinguished with UID, electricity The unit of statistics is milliampere-second (mAs).The data source of electricity statistics is divided into two parts:A part is in android system PowerProfile.xml files (being provided by cell phone manufacturer), have recorded the corresponding electric current of each equipment different conditions in file Value/carry out the charge value that certain operation needs consumes;Another part comes from system acquisition module, such as the execution time of certain component or number According to transmission quantity;The power consumption calculation method based on android system includes the power consumption system based on android system, described Power consumption system based on android system includes applying power-consuming elements and system power dissipation unit;
The calculation formula of the computational methods is:Ptotal=Papp+Psystem
It is described to be using the power consumption calculation formula of power-consuming elements:
Papp=∑ Pprocess_CPU+Pwakelock+PDT+Papp_WIFI+Psensor
The power consumption calculation formula of the system power dissipation unit is:
Psystem=Pphone+Pradio+Pscreen+PWIFI+Pbluetooth+Pidle
Wherein, in the power consumption calculation formula using power-consuming elements:The Pprocess_CPUFor the power consumption of the CPU of thread Amount, the PwakelockFor the power consumption of the WakeLock of application program, the PDTFor the power consumption of the data transmission of application program Amount, the Papp_WiFiThe power consumption of WIFI, the P are used for application programsensorFor the sensor power consumption of application program, tool Body is as shown in table 1:
Table 1
Further, the Pprocess_CPU=∑ ((Tuser_mode+Tkernel_mode)×DCPU_ACTIVE×Sfreq),
The Pwake_lock=∑ Twakelock×DCPU_AWAKE,
The Papp_WIFI=Tapp_WIFI×DWIFI_ON,
The Psensor=Pnormal+TGPS×DGPS_ON,
The PDT=(Bin+Bout)×PperByte
Further, in the power consumption calculation formula of the system power dissipation unit:The PsystemIt is caused for nonusable routine Power consumption, the PphoneTo take the power consumption of phone, the PradioFor varying strength base band it is standby+consumption of signal scanning Electricity, the PscreenFor unlatching+lasting power consumption of difference brightness, the PWiFiFor the power consumption of unlatching+no data transmission operation Amount, the PbluetoothFor the power consumption of unlatching+AT instructions, the PidleFor idle power consumption;It is specific as shown in table 2:
Symbol Explanation Symbol Explanation
Tuser_mode The User space time Tapp_WiFi App uses the time of WIFI
Tkernel_mode The kernel state time DWIFI_ON POWER_WIFI_ON benchmark
DCPU_ACTIVE POWER_CPU_AWAKE benchmark DGPS_ON POWER_GPS_ON benchmark
Sfreq The Power x Time proportion Pnormal The power consumption of ordinary sensors
Twakelock The wakelock times TGPS App uses the time of GPS
DCPU_AWAKE POWER_CPU_AWAKE benchmark
Table 2
Further, the Pphone=Tphone×DRADIO_ACTIVE,
The Pradio=∑ (Tradio_i×DRADIO_ON_i)+Tscanning×DRADIO_SCANNING, the Pscreen=Ton× DSCREEN_ON+∑(DSCREEN_FULL×(bi+0.5f)×Tbi), the PWIFI=TWIFI_on×0×DWIFI_ON+(Tall_WIFI- Tapp_WIFI)×DWIFI_ON, describedThe Pidle= DCPU_IDLE×(Ttotal-Tscreen)。
Each detail parameters are as shown in table 3:
Table 3
Detail parameters are as shown in table 4:
Table 4
System power consumption algorithm parameter is as shown in table 5:
Table 5
The present invention the power consumption calculation method based on android system, can be used for analyzing the application power-consuming elements with Influence of the system power dissipation unit to power consumption, and optimised power consumption is carried out in this, as basis, include mainly:(1) programming system Daily record (creating component/thread) analysis, that is, be based on android system daily record, analyzes the life cycle of four big components and applies journey Redirect call relation between sequence and its component, four big components include Activity, Service, Content Provider with And BroadcastReceiver;(2) user uses the situation, including time, application name, program element etc. of application program.
The above is only highly preferred embodiment of the present invention, is not intended to limit the present invention in any form, and is appointed What those skilled in the art, without departing from the scope of the technical proposal of the invention, using in the method for the disclosure above Appearance makes many possible changes and modifications to technical solution of the present invention, belongs to protective scope of the claims.

Claims (5)

1. a kind of power consumption calculation method based on android system, it is characterised in that:It include the power consumption based on android system System, the power consumption system based on android system include applying power-consuming elements and system power dissipation unit;
The calculation formula of the computational methods is:Ptotal=Papp+Psystem
It is described to be using the power consumption calculation formula of power-consuming elements:
Papp=∑ Pprocess_CPU+Pwakelock+PDT+Papp_WIFI+Psensor
The power consumption calculation formula of the system power dissipation unit is:
Psystem=Pphone+Pradio+Pscreen+PWIFI+Pbluetooth+Pidle
2. the power consumption calculation method based on android system as described in claim 1, it is characterised in that:It is described to apply power consumption In the power consumption calculation formula of unit:The Pprocess_CPUFor the power consumption of the CPU of thread, the PwakelockFor application program The power consumption of WakeLock, the PDTFor the power consumption of the data transmission of application program, the Papp_WiFiIt is used for application program The power consumption of WIFI, the PsensorFor the sensor power consumption of application program.
3. the power consumption calculation method based on android system as claimed in claim 2, it is characterised in that:
The Pprocess_CPU=∑ ((Tuser_mode+Tkernel_mode)×DCPU_ACTIVE×Sfreq),
The Pwake_lock=∑ Twakelock×DCPU_AWAKE,
The Papp_WIFI=Tapp_WIFI×DWIFI_ON,
The Psensor=Pnormal+TGPS×DGPS_ON,
The PDT=(Bin+Bout)×PperByte
4. the power consumption calculation method based on android system as described in claim 1, it is characterised in that:The system power dissipation In the power consumption calculation formula of unit:The PsystemFor power consumption caused by nonusable routine, the PphoneTo take the consumption of phone Electricity, the PradioFor varying strength base band it is standby+power consumption of signal scanning, the PscreenContinue for unlatching+difference brightness Power consumption, the PWiFiFor the power consumption of unlatching+no data transmission operation, the PbluetoothFor the power consumption of unlatching+AT instructions Amount, the PidleFor idle power consumption.
5. the power consumption calculation method based on android system as claimed in claim 4, it is characterised in that:
The Pphone=Tphone×DRADIO_ACTIVE,
The Pradio=∑ (Tradio_i×DRADIO_ON_i)+Tscanning×DRADIO_SCANNING,
The Pscreen=Ton×DSCREEN_ON+∑(DSCREEN_FULL×(bi+0.5f)×Tbi),
The PWIFI=TWIFI_on×0×DWIFI_ON+(Tall_WIFI-Tapp_WIFI)×DWIFI_ON,
It is described
The Pidle=DCPU_IDLE×(Ttotal-Tscreen)。
CN201810162276.8A 2018-02-27 2018-02-27 A kind of power consumption calculation method based on android system Withdrawn CN108415816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810162276.8A CN108415816A (en) 2018-02-27 2018-02-27 A kind of power consumption calculation method based on android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810162276.8A CN108415816A (en) 2018-02-27 2018-02-27 A kind of power consumption calculation method based on android system

Publications (1)

Publication Number Publication Date
CN108415816A true CN108415816A (en) 2018-08-17

Family

ID=63129192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810162276.8A Withdrawn CN108415816A (en) 2018-02-27 2018-02-27 A kind of power consumption calculation method based on android system

Country Status (1)

Country Link
CN (1) CN108415816A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543403A (en) * 2019-09-09 2019-12-06 广州华多网络科技有限公司 power consumption evaluation method and device
CN112181757A (en) * 2020-08-14 2021-01-05 中山大学 Fine-grained power consumption estimation method based on simulator

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306118A (en) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Method and device for monitoring power consumption of application program at Android terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高桐@BILL期: "详解Android功耗分析工具Power Tutor的使用" *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543403A (en) * 2019-09-09 2019-12-06 广州华多网络科技有限公司 power consumption evaluation method and device
CN110543403B (en) * 2019-09-09 2024-02-09 广州华多网络科技有限公司 Power consumption assessment method and device
CN112181757A (en) * 2020-08-14 2021-01-05 中山大学 Fine-grained power consumption estimation method based on simulator

Similar Documents

Publication Publication Date Title
CA2741088C (en) Methods of achieving cognizant power management
CN104850488A (en) Virtual machine power consumption measurement and management
Han et al. E3: Energy-efficient engine for frame rate adaptation on smartphones
DE602004028877D1 (en) NER PLATFORM FOR TELECOMMUNICATIONS SERVICE AND / OR NETWORK MANAGEMENT, APPROPRIATE PLATFORM AND COMPUTER PROGRAM PRODUCT THEREFOR
DE112004002506T5 (en) Apparatus and method for energy performance monitors for program adaptation to low power consumption
Qian et al. Jade: An efficient energy-aware computation offloading system with heterogeneous network interface bonding for ad-hoc networked mobile devices
ul Islam et al. Task aware hybrid DVFS for multi-core real-time systems using machine learning
CN102253883A (en) Method and system for evaluating performance of server
CN108415816A (en) A kind of power consumption calculation method based on android system
Corral et al. Energy-aware performance evaluation of android custom kernels
CN106197468A (en) The method and system that pedometer step number updates
Duan et al. Energy analysis and prediction for applications on smartphones
Islam et al. Distributed temperature-aware resource management in virtualized data center
Obukhova et al. Diagnostics of power consumption of a mobile device multi-core processor with detail of each core utilization
Ortiz et al. Improving resource consumption in context-aware mobile applications through alternative architectural styles
Damaševičius et al. Methods for measurement of energy consumption in mobile devices
Kawaguchi et al. Adaptive power efficiency control by computer power consumption prediction using performance counters
Siegmund et al. Automating energy optimization with features
Patil et al. Reducing power consumption of smart device by proper management of wakelocks
Gupta et al. Energy-sustainable framework and performance analysis of power scheme for operating systems: a tool
Chen et al. Energy efficient parallel matrix-matrix multiplication for DVFS-enabled clusters
CN112486683B (en) Processor control method, control apparatus, and computer-readable storage medium
Altamimi et al. A computing profiling procedure for mobile developers to estimate energy cost
Li et al. Usage history-directed power management for smartphones
Gaspar et al. Performance-aware task management and frequency scaling in embedded systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180817