Get memory usage of a process in Ruby