title: Retrieve system information on Mac OS X
body: <p>Using C++, is there a way I could get basic information about the computer?</p>
  <p>For example, is there a way I could check how much memory is being used (by the whole computer not just my computer), the total memory available, virtual memory usage, CPU usage, networks stats and so on?</p>
  <p>I am using <a href="https://en.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard" rel="nofollow noreferrer">Mac OS X v10.6</a> (Snow Leopard), but I would prefer a solution that could be implemented for all Mac OSs (for example, <a href="https://en.wikipedia.org/wiki/Mac_OS_X_Lion" rel="nofollow noreferrer">Mac OS X v10.7</a> (Lion)).</p>