Power Monitor for macOS is a command line tool that read CPU's power consumption through Powermetrics tool, and provides the power consumption of the CPU every second. It works on both Intel and ARM (Apple chip) macs.
Just run the bash script in command line after giving executable rights to the appropriate file: chmod +x powermonitor-intel.sh
(for Mac Intel) or chmod +x powermonitor-arm.sh
(for Apple M chips).
It'll print on the command line the power consumption of the CPU every second.
Power Monitor for macOS is licensed under the GNU GPL 3 license only (GPL-3.0-only).
Copyright (c) 2024, Adel Noureddine, Université de Pau et des Pays de l'Adour. All rights reserved. This program and the accompanying materials are made available under the terms of the GNU General Public License v3.0 only (GPL-3.0-only) which accompanies this distribution, and is available at: https://www.gnu.org/licenses/gpl-3.0.en.html
Author : Adel Noureddine