This repository is the source code written by me to parse the powermetrics logs and generate charts used in the following blog https://singhkays.com/blog/apple-silicon-m1-video-power-consumption-pt-1/
Here are the various files and folders and their purposes
powermetrics-parse.py
- This is the main code that is used to parse logs and generate chartsautorun-local-videos.py
- This is an experimental file that I was trying to use to completely automate logging and playing local videos. I didn't use this for the blog as it needs more testing and fine-tuning.autorun-local-videos.py
- Equivalent of #2 but for testing browser based videos using Seleniumpowermetric-logs
- Folder where thepowermetrics-parse.py
script expects to find the logs to parseoutputs
- Folder where the output charts and files are placed
Feel free to use this code to learn or modify for your investigations. All I ask is an attribution to this repo and the accompanying blog @ https://singhkays.com/blog/apple-silicon-m1-video-power-consumption-pt-1/.
I'm fairly active over on Twitter and my DMs are open. Feel free to reach out with questions/comments, etc.