monky-2.1.0.0: A system state collecting library and application

PortabilityLinux
Stabilitytesting
Maintainerongy, moepi
Safe HaskellNone

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 MHandleSource

Get the the memory handle (available)

getMemoryBarHandleSource

Arguments

:: Float

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

-> IO MBHandle 

Get the MBHandle

getMemoryFreeHandle :: IO MFHandleSource

Get the the memory handle (free)

data MHandle Source

Simple handle to display current memory available

Instances

data MFHandle Source

Simple handle to display current free memory

Instances

data MBHandle Source

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

Instances