How do I get a power consumption from Linux kernel
<p>I was wondering if there is a linux command I can get the power usage from Linux kernel. 
For example, I could get a CPU usage from <em>proc/stat</em>. I was wondering if there might be a similar command that I could get a power consumption or I could calculate the power consumption from some numbers. </p>

<p>I basically want to measure the power consumption of Android device. I know I could get the battery level of an Android device but I want to measure POWER consumption not just battery level.</p>

<p>I tried the PowerProfile, a private API, but I was not able to run it on my project.</p>

<p>Thanks in advance. </p>
