sysinfo

Haskell Interface for getting overall system statistics https://github.com/psibi/sysinfo#readme

Version on this page:0.1.1
LTS Haskell 9.18:0.1.1
Stackage Nightly 2017-12-14:0.1.1
Latest on Hackage:0.1.1
BSD3 licensed by Sibi Prabakaran
Maintained by sibi@psibi.in

Module documentation for 0.1.1

sysinfo

Build Status

Haskell interface for the sysinfo Linux system call. This can be used to get system statistics like uptime, free memory, system load etc.

Note that the package works only on Linux system with kernel version >= 2.3.23 and uses FFI calls.

Usage

` haskell λ> import System.SysInfo λ> val <- sysInfo λ> either (\_ -> "sysinfo failed") show val "SysInfo {uptime = 121149, loads = Loads {sloads = [91200,80736,82592]}, totalram = 12286611456, freeram = 967655424, sharedram = 63033344, bufferram = 838983680, totalswap = 8261726208, freeswap = 8259276800, procs = 418, totalhigh = 0, freehigh = 0, memUnit = 1}" `

Changes

Version 0.1.1

  • Make it compile on non Linux platforms

Version 0.1.0.0

  • Initial version released
Depends on 1 package:
Used by 1 package:
comments powered byDisqus