GHC.Stats (original) (raw)
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.
Synopsis
- data GCStats = GCStats {
- bytesAllocated ::
- numGcs ::
- maxBytesUsed ::
- numByteUsageSamples ::
- cumulativeBytesUsed ::
- bytesCopied ::
- currentBytesUsed ::
- currentBytesSlop ::
- maxBytesSlop ::
- peakMegabytesAllocated ::
- mutatorCpuSeconds ::
- mutatorWallSeconds ::
- gcCpuSeconds ::
- gcWallSeconds ::
- cpuSeconds ::
- wallSeconds ::
- parTotBytesCopied ::
- parMaxBytesCopied ::
}
- bytesAllocated ::
- getGCStats :: IO GCStats
- getGCStatsEnabled :: IO Bool
Documentation
data GCStats Source
Global garbage collection and memory statistics.
getGCStats :: IO GCStatsSource
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](System-Mem.html#t:performGC)
.