Maintainer | ongy |
---|---|
Stability | testing |
Portability | Linux |
Safe Haskell | Safe |
Language | Haskell2010 |
- data MemoryHandle
- getMemoryAvailable :: MemoryHandle -> IO Int
- getMemoryHandle :: IO MemoryHandle
- getMemoryTotal :: MemoryHandle -> IO Int
- getMemoryUsed :: MemoryHandle -> IO Int
- getMemoryFree :: MemoryHandle -> IO Int
- getMemoryStats :: MemoryHandle -> IO (Int, Int, Int, Int)
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)