10 11 12 13 14
# File 'lib/memstat/cli.rb', line 10 def smaps(pid) abort 'Error: unsupported OS' unless Memstat.linux? result = Memstat::Proc::Smaps.new(:pid => pid) puts result.print end