psutil.cr

Psutils.cr is a Crystal port of https://github.com/shirou/gopsutil

psutil.cr Build Status

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.

Status

OS support

  • Linux
  • OSX

Feature support

  • cpu_times
  • virtual_memory
  • disk_partitions
  • disk_usage
  • disk_io_counters
  • host_info
  • load_avg
  • net_io_counters

Installation

Add this to your application's shard.yml:

dependencies:
  psutil:
    github: kodnaplakal/psutil.cr

Usage

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

Development

crystal spec

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

psutil.cr

Owner
Statistic
  • 19
  • 3
  • 4
  • 0
  • 0
  • over 2 years ago
  • October 21, 2017
License

Links
Synced at

Sun, 05 May 2024 18:28:35 GMT

Languages