How to retrieve the % of memory pressure using native libraries

Is there any way to retrieve the memory pressure percentage using native libraries?

When I run the memory-pressure command, I can see the percentage of free memory, but I’d like to retrieve the same information using a native library.

Answered by ssmith_c in 863971022
Accepted Answer
How to retrieve the % of memory pressure using native libraries
 
 
Q