GHC.RTS.Flags
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
Documentation
Parameters of the runtime system
Since: base-4.8.0.0
Constructors
RTSFlags | |
Fields |
Instances
data GiveGCStats Source #
Should we produce a summary of the garbage collector statistics after the program has exited?
Since: base-4.8.2.0
Instances
Parameters of the garbage collector.
Since: base-4.8.0.0
Constructors
GCFlags | |
Fields
|
Instances
Parameters concerning context switching
Since: base-4.8.0.0
Constructors
ConcFlags | |
Fields |
Instances
Generic ConcFlags Source # | |
Show ConcFlags Source # | Since: base-4.8.0.0 |
type Rep ConcFlags Source # | Since: base-4.15.0.0 |
Defined in GHC.RTS.Flags type Rep ConcFlags = D1 ('MetaData "ConcFlags" "GHC.RTS.Flags" "base" 'False) (C1 ('MetaCons "ConcFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "ctxtSwitchTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RtsTime) :*: S1 ('MetaSel ('Just "ctxtSwitchTicks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
Miscellaneous parameters
Since: base-4.8.0.0
Constructors
MiscFlags | |
Fields
|
Instances
data DebugFlags Source #
Flags to control debugging output & extra checking in various subsystems.
Since: base-4.8.0.0
Constructors
DebugFlags | |
Fields
|
Instances
data DoCostCentres Source #
Should the RTS produce a cost-center summary?
Since: base-4.8.2.0
Instances
Parameters pertaining to the cost-center profiler.
Since: base-4.8.0.0
Constructors
CCFlags | |
Fields |
Instances
Generic CCFlags Source # | |
Show CCFlags Source # | Since: base-4.8.0.0 |
type Rep CCFlags Source # | Since: base-4.15.0.0 |
Defined in GHC.RTS.Flags type Rep CCFlags = D1 ('MetaData "CCFlags" "GHC.RTS.Flags" "base" 'False) (C1 ('MetaCons "CCFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "doCostCentres") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DoCostCentres) :*: (S1 ('MetaSel ('Just "profilerTicks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "msecsPerTick") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
data DoHeapProfile Source #
What sort of heap profile are we collecting?
Since: base-4.8.2.0
Constructors
NoHeapProfiling | |
HeapByCCS | |
HeapByMod | |
HeapByDescr | |
HeapByType | |
HeapByRetainer | |
HeapByLDV | |
HeapByClosureType | |
HeapByInfoTable |
Instances
Parameters of the cost-center profiler
Since: base-4.8.0.0
Constructors
ProfFlags | |
Fields
|
Instances
Is event tracing enabled?
Since: base-4.8.2.0
Constructors
TraceNone | no tracing |
TraceEventLog | send tracing events to the event log |
TraceStderr | send tracing events to |
Instances
Enum DoTrace Source # | Since: base-4.8.0.0 |
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 # | |
Generic DoTrace Source # | |
Show DoTrace Source # | Since: base-4.8.0.0 |
type Rep DoTrace Source # | Since: base-4.15.0.0 |
Defined in GHC.RTS.Flags |
data TraceFlags Source #
Parameters pertaining to event tracing
Since: base-4.8.0.0
Constructors
TraceFlags | |
Fields
|
Instances
data TickyFlags Source #
Parameters pertaining to ticky-ticky profiler
Since: base-4.8.0.0
Constructors
TickyFlags | |
Fields
|
Instances
Generic TickyFlags Source # | |
Defined in GHC.RTS.Flags | |
Show TickyFlags Source # | Since: base-4.8.0.0 |
Defined in GHC.RTS.Flags | |
type Rep TickyFlags Source # | Since: base-4.15.0.0 |
Defined in GHC.RTS.Flags type Rep TickyFlags = D1 ('MetaData "TickyFlags" "GHC.RTS.Flags" "base" 'False) (C1 ('MetaCons "TickyFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "showTickyStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "tickyFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)))) |
Parameters pertaining to parallelism
Since: base-4.8.0.0
Constructors
ParFlags | |
Fields
|
Instances
data IoSubSystem Source #
The I/O SubSystem to use in the program.
Since: base-4.9.0.0
Constructors
IoPOSIX | Use a POSIX I/O Sub-System |
IoNative | Use platform native Sub-System. For unix OSes this is the same as IoPOSIX, but on Windows this means use the Windows native APIs for I/O, including IOCP and RIO. |
Instances
getRTSFlags :: IO RTSFlags Source #
getGCFlags :: IO GCFlags Source #
getIoManagerFlag :: IO IoSubSystem Source #
Needed to optimize support for different IO Managers on Windows. See Note [The need for getIoManagerFlag]
getCCFlags :: IO CCFlags Source #
getParFlags :: IO ParFlags Source #