-
-
Save oyiptong/8c516540a8be7ffdcadaf106b8f81d16 to your computer and use it in GitHub Desktop.
CPU Power
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# A dictionary of available CPU's, COU scheduler limit, and CPU speed limit | |
from SystemConfiguration import ( | |
SCDynamicStoreCreate, | |
SCDynamicStoreCopyValue, | |
) | |
ds = SCDynamicStoreCreate(None, 'power', None, None) | |
result = SCDynamicStoreCopyValue(ds, 'State:/IOKit/Power/CPUPower') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment