Machine collects some informations about cpu, memory, processes.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
machine.gemspec

README.md

machine

Machine collects some informations about cpu, memory, processes.

Usage

Machine::Info::Cpu.cores_size
Machine::Info::Memory.mem_total
Machine::Info::Memory.mem_free
Machine::ProcessStatus.new(pid).pctcpu
Machine::ProcessStatus.new(pid).pctmem

Check out the sys-proctable from documentation about ProcessStatus.

Copyright

MIT. See LICENSE for further details.