Ctop::Collectors::Memory
Inherits Ctop::Collectors::Base < Reference < Object
Collects memory usage metrics.
memory = Ctop::Collectors::Memory.new
snapshot = memory.collect
puts "Used: #{snapshot.used_bytes / 1024 / 1024} MB"
puts "Percent: #{snapshot.percent.round(1)}%"