lib/rbbt/util/misc/development.rb in rbbt-util-5.14.18 vs lib/rbbt/util/misc/development.rb in rbbt-util-5.14.20

- old
+ new

@@ -296,6 +296,10 @@ Log.warn "Process #{Process.pid} was aborted" end nil end end + + def self.memory_use(pid=nil) + `ps -o rss -p #{pid || $$}`.strip.split.last.to_i + end end