Mac OS X has a nice command-line utility called powermetrics
that can perform a range of power-related measurements. Does anybody know if the source code is available for it? I’ve looked on Apple’s Open Source site but couldn’t find it. (In contrast, I did find the source code for top
, which has some much simpler power measurements.)
I’d also love to see source code for the Activity Monitor, but given that it’s a graphical application rather than a command-line application, it seems less likely it will be available.
One reply on “Source code for powermetrics?”
Not directly what you’re looking for, but Intel powertop (for Linux) is on github.