Skip to content

Instantly share code, notes, and snippets.

Avatar

beltex

View GitHub Profile
@beltex
beltex / powermetrics.d
Last active Aug 26, 2020
Read SMC keys that Apple's powermetrics tool uses. Requires OS X 10.10
View powermetrics.d
/*******************************************************************************
WHAT: Read SMC keys that Apple's powermetrics tool uses. Requires OS X 10.10
RUN: sudo dtrace -qCs powermetrics.d -c 'powermetrics --sampler smc -n 1'
DETAIL: This lets us see what hardware components/functions they map to.
LICENSE: MIT
AUTHOR: beltex <http://beltex.github.io>
REFERENCES:
- Advanced Mac OS X Programming: The Big Nerd Ranch Guide
You can’t perform that action at this time.