Get Device Memory Xcode
-
27-09-2019 - |
Question
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.
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow