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!).