Safe Haskell | None |
---|---|
Language | Haskell2010 |
GHC.RTS.Flags
Description
Accessors to GHC RTS flags.
Descriptions of flags can be seen in
GHC User's Guide,
or by running RTS help message using +RTS --help
.
Since: 4.8.0.0
Synopsis
- type RtsTime = Word64
- data RTSFlags = RTSFlags {}
- data GiveGCStats
- data GCFlags = GCFlags {
- statsFile :: Maybe FilePath
- giveStats :: GiveGCStats
- maxStkSize :: Word32
- initialStkSize :: Word32
- stkChunkSize :: Word32
- stkChunkBufferSize :: Word32
- maxHeapSize :: Word32
- minAllocAreaSize :: Word32
- largeAllocLim :: Word32
- nurseryChunkSize :: Word32
- minOldGenSize :: Word32
- heapSizeSuggestion :: Word32
- heapSizeSuggestionAuto :: Bool
- oldGenFactor :: Double
- pcFreeHeap :: Double
- generations :: Word32
- squeezeUpdFrames :: Bool
- compact :: Bool
- compactThreshold :: Double
- sweep :: Bool
- ringBell :: Bool
- idleGCDelayTime :: RtsTime
- doIdleGC :: Bool
- heapBase :: Word
- allocLimitGrace :: Word
- numa :: Bool
- numaMask :: Word
- data ConcFlags = ConcFlags {}
- data MiscFlags = MiscFlags {}
- data DebugFlags = DebugFlags {}
- data DoCostCentres
- data CCFlags = CCFlags {}
- data DoHeapProfile
- data ProfFlags = ProfFlags {
- doHeapProfile :: DoHeapProfile
- heapProfileInterval :: RtsTime
- heapProfileIntervalTicks :: Word
- includeTSOs :: Bool
- showCCSOnException :: Bool
- maxRetainerSetSize :: Word
- ccsLength :: Word
- modSelector :: Maybe String
- descrSelector :: Maybe String
- typeSelector :: Maybe String
- ccSelector :: Maybe String
- ccsSelector :: Maybe String
- retainerSelector :: Maybe String
- bioSelector :: Maybe String
- data DoTrace
- data TraceFlags = TraceFlags {
- tracing :: DoTrace
- timestamp :: Bool
- traceScheduler :: Bool
- traceGc :: Bool
- sparksSampled :: Bool
- sparksFull :: Bool
- user :: Bool
- data TickyFlags = TickyFlags {
- showTickyStats :: Bool
- tickyFile :: Maybe FilePath
- data ParFlags = ParFlags {
- nCapabilities :: Word32
- migrate :: Bool
- maxLocalSparks :: Word32
- parGcEnabled :: Bool
- parGcGen :: Word32
- parGcLoadBalancingEnabled :: Bool
- parGcLoadBalancingGen :: Word32
- parGcNoSyncWithIdle :: Word32
- parGcThreads :: Word32
- setAffinity :: Bool
- getRTSFlags :: IO RTSFlags
- getGCFlags :: IO GCFlags
- getConcFlags :: IO ConcFlags
- getMiscFlags :: IO MiscFlags
- getDebugFlags :: IO DebugFlags
- getCCFlags :: IO CCFlags
- getProfFlags :: IO ProfFlags
- getTraceFlags :: IO TraceFlags
- getTickyFlags :: IO TickyFlags
- getParFlags :: IO ParFlags
Documentation
Parameters of the runtime system
Since: 4.8.0.0
Constructors
Fields
data GiveGCStats Source #
Should we produce a summary of the garbage collector statistics after the program has exited?
Since: 4.8.2.0
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
Methods
succ :: GiveGCStats -> GiveGCStats Source #
pred :: GiveGCStats -> GiveGCStats Source #
toEnum :: Int -> GiveGCStats Source #
fromEnum :: GiveGCStats -> Int Source #
enumFrom :: GiveGCStats -> [GiveGCStats] Source #
enumFromThen :: GiveGCStats -> GiveGCStats -> [GiveGCStats] Source #
enumFromTo :: GiveGCStats -> GiveGCStats -> [GiveGCStats] Source #
enumFromThenTo :: GiveGCStats -> GiveGCStats -> GiveGCStats -> [GiveGCStats] Source #
Instance details
Defined in GHC.RTS.Flags
Parameters of the garbage collector.
Since: 4.8.0.0
Constructors
Fields
- statsFile :: Maybe FilePath
- giveStats :: GiveGCStats
- maxStkSize :: Word32
- initialStkSize :: Word32
- stkChunkSize :: Word32
- stkChunkBufferSize :: Word32
- maxHeapSize :: Word32
- minAllocAreaSize :: Word32
- largeAllocLim :: Word32
- nurseryChunkSize :: Word32
- minOldGenSize :: Word32
- heapSizeSuggestion :: Word32
- heapSizeSuggestionAuto :: Bool
- oldGenFactor :: Double
- pcFreeHeap :: Double
- generations :: Word32
- squeezeUpdFrames :: Bool
- compact :: Bool
True = "compact all the time"
- compactThreshold :: Double
- sweep :: Bool
use "mostly mark-sweep" instead of copying for the oldest generation
- ringBell :: Bool
- idleGCDelayTime :: RtsTime
- doIdleGC :: Bool
- heapBase :: Word
address to ask the OS for memory
- allocLimitGrace :: Word
- numa :: Bool
- numaMask :: Word
Parameters concerning context switching
Since: 4.8.0.0
Miscellaneous parameters
Since: 4.8.0.0
Constructors
Fields
- tickInterval :: RtsTime
- installSignalHandlers :: Bool
- installSEHHandlers :: Bool
- generateCrashDumpFile :: Bool
- generateStackTrace :: Bool
- machineReadable :: Bool
- internalCounters :: Bool
- linkerMemBase :: Word
address to ask the OS for memory for the linker, 0 ==> off
data DebugFlags Source #
Flags to control debugging output & extra checking in various subsystems.
Since: 4.8.0.0
Constructors
Fields
- scheduler :: Bool
s
- interpreter :: Bool
i
- weak :: Bool
w
- gccafs :: Bool
G
- gc :: Bool
g
- block_alloc :: Bool
b
- sanity :: Bool
S
- stable :: Bool
t
- prof :: Bool
p
- linker :: Bool
l
the object linker - apply :: Bool
a
- stm :: Bool
m
- squeeze :: Bool
z
stack squeezing & lazy blackholing - hpc :: Bool
c
coverage - sparks :: Bool
r
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
data DoCostCentres Source #
Should the RTS produce a cost-center summary?
Since: 4.8.2.0
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
Methods
succ :: DoCostCentres -> DoCostCentres Source #
pred :: DoCostCentres -> DoCostCentres Source #
toEnum :: Int -> DoCostCentres Source #
fromEnum :: DoCostCentres -> Int Source #
enumFrom :: DoCostCentres -> [DoCostCentres] Source #
enumFromThen :: DoCostCentres -> DoCostCentres -> [DoCostCentres] Source #
enumFromTo :: DoCostCentres -> DoCostCentres -> [DoCostCentres] Source #
enumFromThenTo :: DoCostCentres -> DoCostCentres -> DoCostCentres -> [DoCostCentres] Source #
Instance details
Defined in GHC.RTS.Flags
Parameters pertaining to the cost-center profiler.
Since: 4.8.0.0
data DoHeapProfile Source #
What sort of heap profile are we collecting?
Since: 4.8.2.0
Constructors
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
Methods
succ :: DoHeapProfile -> DoHeapProfile Source #
pred :: DoHeapProfile -> DoHeapProfile Source #
toEnum :: Int -> DoHeapProfile Source #
fromEnum :: DoHeapProfile -> Int Source #
enumFrom :: DoHeapProfile -> [DoHeapProfile] Source #
enumFromThen :: DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] Source #
enumFromTo :: DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] Source #
enumFromThenTo :: DoHeapProfile -> DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] Source #
Instance details
Defined in GHC.RTS.Flags
Parameters of the cost-center profiler
Since: 4.8.0.0
Constructors
Fields
- doHeapProfile :: DoHeapProfile
- heapProfileInterval :: RtsTime
time between samples
- heapProfileIntervalTicks :: Word
ticks between samples (derived)
- includeTSOs :: Bool
- showCCSOnException :: Bool
- maxRetainerSetSize :: Word
- ccsLength :: Word
- modSelector :: Maybe String
- descrSelector :: Maybe String
- typeSelector :: Maybe String
- ccSelector :: Maybe String
- ccsSelector :: Maybe String
- retainerSelector :: Maybe String
- bioSelector :: Maybe String
Is event tracing enabled?
Since: 4.8.2.0
Constructors
no tracing
send tracing events to the event log
send tracing events to stderr
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
Methods
succ :: DoTrace -> DoTrace Source #
pred :: DoTrace -> DoTrace Source #
toEnum :: Int -> DoTrace Source #
fromEnum :: DoTrace -> Int Source #
enumFrom :: DoTrace -> [DoTrace] Source #
enumFromThen :: DoTrace -> DoTrace -> [DoTrace] Source #
enumFromTo :: DoTrace -> DoTrace -> [DoTrace] Source #
enumFromThenTo :: DoTrace -> DoTrace -> DoTrace -> [DoTrace] Source #
data TraceFlags Source #
Parameters pertaining to event tracing
Since: 4.8.0.0
Constructors
Fields
- tracing :: DoTrace
- timestamp :: Bool
show timestamp in stderr output
- traceScheduler :: Bool
trace scheduler events
- traceGc :: Bool
trace GC events
- sparksSampled :: Bool
trace spark events by a sampled method
- sparksFull :: Bool
trace spark events 100% accurately
- user :: Bool
trace user events (emitted from Haskell code)
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
data TickyFlags Source #
Parameters pertaining to ticky-ticky profiler
Since: 4.8.0.0
Instances
Instances details
Instance details
Defined in GHC.RTS.Flags
Parameters pertaining to parallelism
Since: 4.8.0.0
Constructors
Fields
- nCapabilities :: Word32
- migrate :: Bool
- maxLocalSparks :: Word32
- parGcEnabled :: Bool
- parGcGen :: Word32
- parGcLoadBalancingEnabled :: Bool
- parGcLoadBalancingGen :: Word32
- parGcNoSyncWithIdle :: Word32
- parGcThreads :: Word32
- setAffinity :: Bool
getRTSFlags :: IO RTSFlags Source #
getGCFlags :: IO GCFlags Source #
getCCFlags :: IO CCFlags Source #
getParFlags :: IO ParFlags Source #