Class: Memstat::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/memstat/cli.rb

Instance Method Summary collapse

Instance Method Details

#smaps(pid) ⇒ Object



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