| Safe Haskell | Safe | 
|---|
GHC.Stats
Description
This module provides access to internal garbage collection and
 memory usage statistics.  These statistics are not available unless
 a program is run with the -T RTS flag.
This module is GHC-only and should not be considered portable.
- data  GCStats  = GCStats {- bytesAllocated :: !Int64
- numGcs :: !Int64
- maxBytesUsed :: !Int64
- numByteUsageSamples :: !Int64
- cumulativeBytesUsed :: !Int64
- bytesCopied :: !Int64
- currentBytesUsed :: !Int64
- currentBytesSlop :: !Int64
- maxBytesSlop :: !Int64
- peakMegabytesAllocated :: !Int64
- mutatorCpuSeconds :: !Double
- mutatorWallSeconds :: !Double
- gcCpuSeconds :: !Double
- gcWallSeconds :: !Double
- cpuSeconds :: !Double
- wallSeconds :: !Double
- parTotBytesCopied :: !Int64
- parMaxBytesCopied :: !Int64
 
- getGCStats :: IO GCStats
- getGCStatsEnabled :: IO Bool
Documentation
data GCStats
Global garbage collection and memory statistics.
Constructors
| GCStats | |
| Fields 
 | |
getGCStats :: IO GCStats
Retrieves garbage collection and memory statistics as of the last
 garbage collection.  If you would like your statistics as recent as
 possible, first run a performGC.