I need to get information about CPU, RAM, Battery usage in mac application.
I can get all those information by using vm_stat
,top
,system_profiler
using NSTask
.
But I can't use those if I enable sandbox.
I can't find anything because the documentation for that is very poor(or I didn't find anything I guess).
So, what are the functions I can use to get the info about the system? Like using IOPowerSources.h
I can get information about the Battery.
Can anyone guide me?
Thanks!