I'm developing android app using OpenCL for CPU-GPU parallel computing. I want to measure CPU-GPU each power consumption or total power consumption in app execution. But I can't find proper measurement method.
Asked
Active
Viewed 3,470 times
2 Answers
1
The Android Developer site provides you with all you need :
https://developer.android.com/training/monitoring-device-state/index.html
You can :
1.Monitor the Battery Level and Charging State
2.Determine and Monitor the Docking State and Type

Meghdeep Ray
- 5,262
- 4
- 34
- 58
1
I have used ODROID-XU to measure energy consumption in CPU and GPU. They provide power sensors for the 2 CPUs, GPU, and memory.
I have made a few scripts for collecting and analysing such data. Available here: https://github.com/luiscruz/greenbenchmark
This is a good approach if you need reliable measurements. On the contrary, software-based approaches only provide an estimation which might not be accurate.

Luis Cruz
- 393
- 1
- 14