Apple Silicon power monitor tool

A new GitHub tool surfaced that monitors power consumption on Apple Silicon Macs, giving engineers a lightweight way to profile energy use on real hardware. The project can help teams spot inefficient workloads and tune software for better thermal and battery behavior on Apple’s SoC platforms. Having accessible tools like this makes it easier to validate power budgets during development and in lab validation. (x.com)

A laptop chip is like a city with separate neighborhoods for different jobs, and each neighborhood pulls its own electricity when you ask it to work. On Apple Silicon Macs, those neighborhoods include the central processing unit for general work, the graphics processor for images, and the Apple Neural Engine for machine learning. (github.com) The hard part is that power use is not the same as speed. A program can finish fast and still waste watts by keeping the wrong part of the chip busy, which turns into fan noise, heat, and shorter battery life. (developer.apple.com) Apple already ships a tool called Power Profiler inside Xcode Instruments, but Apple’s own documentation describes it around app tracing and device workflows rather than a simple always-on terminal meter for Mac developers. Apple says its Power Profiler shows overall system power use and thermal state while you record and compare traces before and after changes. (developer.apple.com) For years, many Apple Silicon command-line monitors got their numbers from a built-in macOS utility called powermetrics. That utility can read hardware counters, but popular tools like asitop and pumas both say they need sudo, which means administrator access, because powermetrics requires root privileges. (tlkh.github.io) (github.com) That is why this new crop of tools is getting attention. The GitHub project macmon says it uses a private macOS application programming interface, which is an internal software hook, to gather metrics similar to powermetrics without sudo. (github.com) In plain English, that means an engineer can open a terminal and watch watts move around the chip without first unlocking the machine. macmon’s readme says it shows real-time central processing unit, graphics processor, and Apple Neural Engine power usage on Apple Silicon Macs from M1 through M5. (github.com) The tool is not just a dashboard. macmon also exposes a JSON mode, which is a structured text format, and an HTTP metrics server, which lets labs feed the readings into scripts, dashboards, and automated tests. (github.com) That changes the kind of questions teams can ask on real hardware. Instead of guessing whether a model run, video effect, or background task is “heavy,” they can sample the machine every 1000 milliseconds by default and see whether the central processing unit, graphics processor, or memory pressure is actually rising. (github.com) It also helps explain why two apps that feel equally fast can behave very differently on battery. Apple’s documentation tells developers to compare traces before and after changes, because efficient use of device subsystems can reduce recharge frequency and improve the user experience. (developer.apple.com) The bigger shift is that Apple Silicon power data is moving from specialist tooling toward everyday development tooling. When a watt meter lives in the terminal instead of behind administrator prompts and profiling sessions, checking energy use starts to look more like checking memory or central processing unit load. (github.com) (tlkh.github.io)

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.