Skip to content

Instantly share code, notes, and snippets.

beltex

Block or report user

Report or block beltex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@beltex
beltex / powermetrics.d
Last active Apr 23, 2019
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.