Getting power usage from Mac ARM

I have recently come back to exploring energy use while certain Python scripts run, such as machine learning training. I wanted to see if it could be sonified while the training happened. Yes, this does raise numerous questions regarding CPU/GPU use of the measuring device and representation while measuring the data.

The pyJoules library came up as one option. However, it relies on Intel and Nvidia chips. While this makes a lot of sense, it is not helpful if using ARM chips on Macs or Raspberry Pis (if using). Electiclight have a useful post on various Mac-based tools to do this, such as Xcode or a command line one called powermetrics, that I came across thanks to OSX daily. Powermetrics is a command line tool that runs under sudo, but the data is useful (from initial tinkering). There is another post that discusses ways of using Python to run the tool that might enable me to put this into a running script for experimental purposes.

I will still need to explore the Raspberry Pi, but it is not a major aspect at the moment. Next steps? Well, perhaps to run the script as command line behind my running Python script and export to a sonification.

No Comments

Leave a Reply

Your email is never shared.Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.