I really need to know of a way to get the current device’s:
- Active Memory
- Inactive Memory
- Wired Memory
- Free Memory
- Total Memory
Any information, code or anything is helpful.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The desktop uses the Mach call
host_statistics64()to get that information. You can see it in use in the source code for the vm_stat command.