Module: Process

Defined in:
lib/process_memory.rb

Class Method Summary collapse

Class Method Details

.memoryObject

Returns process memory usage without swap in kilobytes



5
6
7
# File 'lib/process_memory.rb', line 5

def self.memory
  `ps -o rss= -p #{pid}`.to_i
end