Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Usage
λ> 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}"
sysInfo :: IO (Either Errno SysInfo) Source #
Function for getting system information. Internally it uses the Linux system call sysinfo to get the system statistics.
Data type representing system informating
SysInfo | |
|