I have a Ruby app which (on Linux) uses the /proc filesystem to get information on its memory usage. Does anyone know how to get the same information for Mac OSX? The task_info system call looks promising but is there an equivalent available from Ruby?
To be clear, I'm looking for a system call, I don't want to kick off a process for this (sorry Lars!).
The OS gem has an rss_bytes method that works for Linux/windows/OS X ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With