monky-2.0.0.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellSafe
LanguageHaskell2010

Monky.Memory

Description

 

Synopsis

Documentation

data MemoryHandle #

The memory handle used for all functions

getMemoryAvailable :: MemoryHandle -> IO Int #

Return the memory available to processes

getMemoryHandle :: IO MemoryHandle #

Get a memory handle

getMemoryTotal :: MemoryHandle -> IO Int #

Get the total amount of memory in the system

getMemoryUsed :: MemoryHandle -> IO Int #

Get the amount of memory used by the kernel and processes

getMemoryFree :: MemoryHandle -> IO Int #

Get the amount of memory rported as free by the kernel

getMemoryStats :: MemoryHandle -> IO (Int, Int, Int, Int) #

Get memory statistics in one got (with only one read) (total, avail, free, used)