Safe Haskell | None |
---|---|
Language | Haskell2010 |
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: base-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 {}
- data ParFlags = ParFlags {}
- 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: base-4.8.0.0
data GiveGCStats #
Should we produce a summary of the garbage collector statistics after the program has exited?
Since: base-4.8.2.0
Instances
Enum GiveGCStats # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags succ :: GiveGCStats -> GiveGCStats # pred :: GiveGCStats -> GiveGCStats # toEnum :: Int -> GiveGCStats # fromEnum :: GiveGCStats -> Int # enumFrom :: GiveGCStats -> [GiveGCStats] # enumFromThen :: GiveGCStats -> GiveGCStats -> [GiveGCStats] # enumFromTo :: GiveGCStats -> GiveGCStats -> [GiveGCStats] # enumFromThenTo :: GiveGCStats -> GiveGCStats -> GiveGCStats -> [GiveGCStats] # | |
Show GiveGCStats # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> GiveGCStats -> ShowS # show :: GiveGCStats -> String # showList :: [GiveGCStats] -> ShowS # |
Parameters of the garbage collector.
Since: base-4.8.0.0
GCFlags | |
|
Parameters concerning context switching
Since: base-4.8.0.0
Miscellaneous parameters
Since: base-4.8.0.0
MiscFlags | |
|
data DebugFlags #
Flags to control debugging output & extra checking in various subsystems.
Since: base-4.8.0.0
Instances
Show DebugFlags # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> DebugFlags -> ShowS # show :: DebugFlags -> String # showList :: [DebugFlags] -> ShowS # |
data DoCostCentres #
Should the RTS produce a cost-center summary?
Since: base-4.8.2.0
Instances
Enum DoCostCentres # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags succ :: DoCostCentres -> DoCostCentres # pred :: DoCostCentres -> DoCostCentres # toEnum :: Int -> DoCostCentres # fromEnum :: DoCostCentres -> Int # enumFrom :: DoCostCentres -> [DoCostCentres] # enumFromThen :: DoCostCentres -> DoCostCentres -> [DoCostCentres] # enumFromTo :: DoCostCentres -> DoCostCentres -> [DoCostCentres] # enumFromThenTo :: DoCostCentres -> DoCostCentres -> DoCostCentres -> [DoCostCentres] # | |
Show DoCostCentres # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> DoCostCentres -> ShowS # show :: DoCostCentres -> String # showList :: [DoCostCentres] -> ShowS # |
Parameters pertaining to the cost-center profiler.
Since: base-4.8.0.0
data DoHeapProfile #
What sort of heap profile are we collecting?
Since: base-4.8.2.0
NoHeapProfiling | |
HeapByCCS | |
HeapByMod | |
HeapByDescr | |
HeapByType | |
HeapByRetainer | |
HeapByLDV | |
HeapByClosureType |
Instances
Enum DoHeapProfile # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags succ :: DoHeapProfile -> DoHeapProfile # pred :: DoHeapProfile -> DoHeapProfile # toEnum :: Int -> DoHeapProfile # fromEnum :: DoHeapProfile -> Int # enumFrom :: DoHeapProfile -> [DoHeapProfile] # enumFromThen :: DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] # enumFromTo :: DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] # enumFromThenTo :: DoHeapProfile -> DoHeapProfile -> DoHeapProfile -> [DoHeapProfile] # | |
Show DoHeapProfile # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> DoHeapProfile -> ShowS # show :: DoHeapProfile -> String # showList :: [DoHeapProfile] -> ShowS # |
Parameters of the cost-center profiler
Since: base-4.8.0.0
ProfFlags | |
|
Is event tracing enabled?
Since: base-4.8.2.0
TraceNone | no tracing |
TraceEventLog | send tracing events to the event log |
TraceStderr | send tracing events to |
data TraceFlags #
Parameters pertaining to event tracing
Since: base-4.8.0.0
TraceFlags | |
|
Instances
Show TraceFlags # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> TraceFlags -> ShowS # show :: TraceFlags -> String # showList :: [TraceFlags] -> ShowS # |
data TickyFlags #
Parameters pertaining to ticky-ticky profiler
Since: base-4.8.0.0
Instances
Show TickyFlags # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags showsPrec :: Int -> TickyFlags -> ShowS # show :: TickyFlags -> String # showList :: [TickyFlags] -> ShowS # |
Parameters pertaining to parallelism
Since: base-4.8.0.0
getRTSFlags :: IO RTSFlags #
getGCFlags :: IO GCFlags #
getConcFlags :: IO ConcFlags #
getMiscFlags :: IO MiscFlags #
getCCFlags :: IO CCFlags #
getProfFlags :: IO ProfFlags #
getParFlags :: IO ParFlags #