Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
/ mem_info Public archive
forked from watsonian/mem_info

[DEPRECATED] Ruby wrapper for /proc/meminfo data

License

Notifications You must be signed in to change notification settings

EtienneM/mem_info

 
 

Repository files navigation

[DEPRECATED] In favor of the more global proc_parser gem

mem_info

This is a lightweight library that wraps access to the data in /proc/meminfo found in many linux variants, which contains live memory usage information about a machine.

Getting Started

Install the gem:

gem install mem_info

Require the library like you would expect:

require 'mem_info'

Then create a new MemInfo object:

m = MemInfo.new
m.memtotal     => 70000
m.memfree      => 54300
m.memused      => 15700
m.free_buffers => 75000

Take a look in lib/mem_info.rb for all fields that are available.

Copyright

Copyright (c) 2012 Joel Watson. See LICENSE for details.

About

[DEPRECATED] Ruby wrapper for /proc/meminfo data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%