This is a port of gopsutil Gopsutil a library for accessing information from the system for statistical purposes. It could be used for software that monitors the system for alerting or graphing purposes.
Add this to your application's shard.yml
:
dependencies:
psutil:
github: kodnaplakal/psutil.cr
require "psutil"
puts Psutil.cpu_times
puts Psutil.virtual_memory
puts Psutil.disk_partitions
puts Psutil.disk_usage
puts Psutil.disk_io_counters
puts Psutil.host_info
puts Psutil.load_avg
puts Psutil.net_io_counters
crystal spec
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)