psutil.cr
forked from aablinov/psutil.crpsutil.cr
This is a fork of aablinov/psutil.cr
, originally 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.
This fork fixes some issues with later versions of Crystal, and is compatible with Crystal 1.1.1.
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: Green-Edge/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 -v
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- kodnaplakal: Andrey Blinov - creator, maintainer
- Green Edge: Phillip Oldham - contributor
Repository
psutil.cr
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- about 3 years ago
- August 25, 2021
License
Links
Synced at
Thu, 07 Nov 2024 03:59:50 GMT
Languages