rdp/os

add rss_bytes

Closed this issue · 1 comments

rdp commented

def Driver.rss_current
if RUBY_PLATFORM =~ /darwin/
ps u | grep #{Process.pid} | grep -v grep.strip
elsif RUBY_PLATFORM =~ /mingw|mswin/
0
else
# assume linux
(File.read "/proc/#{Process.pid}/statm").strip
end
end

and also rbs

rdp commented

somewhat done LOL