monky-2.2.1.0: A system state collecting library and application

Maintainerongy, moepi
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Examples.Memory

Description

For older kernels the memory available value may be wrong. When not provided by the kernel it's computed as `free + cached + buffers`. If you find this to be to inacurate, use the version for memory free. But be aware, that free memory on linux can go close to zero because of io buffers.

Synopsis

Documentation

getMemoryHandle :: IO MHandle Source #

Get the the memory handle (available)

getMemoryBarHandle Source #

Arguments

:: Float

A factor to modify bar length. Total-length: 100/f

-> IO MBHandle 

Get the MBHandle

getMemoryFreeHandle :: IO MFHandle Source #

Get the the memory handle (free)

data MHandle Source #

Simple handle to display current memory available

data MFHandle Source #

Simple handle to display current free memory

data MBHandle Source #

Handle to display the current memory usage (usedcachesfree) as horizontal bar