Safe Haskell | Safe-Inferred |
---|
Utilities dealing with memory usage.
TODO the SizeOf part can maybe be replaced by the weigh package.
Synopsis
- newtype Size = Size Integer
- fromBytes :: Integral a => a -> Size
- toBytes :: Size -> Integer
- fromK :: RealFrac a => a -> Size
- toK :: Size -> Double
- fromM :: RealFrac a => a -> Size
- toM :: Size -> Double
- fromWords :: Integral a => a -> Size
- class SizeOf a where
- taggedBox :: Size
- box :: Size
- boxedStorable :: Storable a => a -> Size
- rssVsize :: IO (Size, Size)
- rtsAllocated :: IO Size
- stats :: IO RTSStats
Size
Size in bytes.
SizeOf
boxedStorable :: Storable a => a -> Size Source #
Boxed word-sized datatype.
usage
RTS
rtsAllocated :: IO Size Source #
Allocated memory according to the GHC RTS.