These are chat archives for Spirals-Team/powerapi

20th
Jan 2017
Pranav Gupta
@phgupta
Jan 20 2017 03:58

Hi, I’m looking to calculate the dynamic power consumption of websites (eg. calculating power consumed while browsing through YouTube/Facebook for 10 minutes) I’m using a Mac and I downloaded PowerAPI cli from https://github.com/Spirals-Team/powerapi/wiki/Getting-started-CLI and ran the following command from the root folder,

./bin/powerapi modules procfs-cpu-simple monitor --frequency 1000 --pids 808

where the PID 808 is a YouTube video playing in Chrome.

However, the results showed 0 power consumption.
muid=05b695ae-d242-4661-9c94-76bfd06864ed;timestamp=1484883156823;target=808;devices=cpu;power=0.0
muid=05b695ae-d242-4661-9c94-76bfd06864ed;timestamp=1484883157826;target=808;devices=cpu;power=0.0
muid=05b695ae-d242-4661-9c94-76bfd06864ed;timestamp=1484883158834;target=808;devices=cpu;power=0.0
muid=05b695ae-d242-4661-9c94-76bfd06864ed;timestamp=1484883159835;target=808;devices=cpu;power=0.0
.
.
.

I want to know if PowerAPI can in fact calculate the power consumption of websites and if so, what command should I execute?

Thanks