Method: LinuxProcessMemory#rss

Defined in:
lib/linux_process_memory.rb

#rss(units = :bytes) ⇒ Numberic Also known as: resident

Returns the resident set size for the process.

Parameters:

  • units (Symbol) (defaults to: :bytes)

    The units to return the memory usage in. Valid values are :bytes, :kilobytes, :megabytes, :gigabytes, :kb, :mb, :gb, :k, :m, :g. Defaults to :bytes.

Returns:

  • (Numberic)


60
61
62
# File 'lib/linux_process_memory.rb', line 60

def rss(units = :bytes)
  convert_units(@stats[:Rss], units)
end