Spec-Zone.ru › Haskell 8

GHC.RTS.Flags

Safe Haskell None
Language Haskell2010

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: base-4.8.0.0

type RtsTime = Word64 Source

RtsTime is defined as a StgWord64 in stg/Types.h

Since: base-4.8.2.0

data RTSFlags Source

Parameters of the runtime system

Since: base-4.8.0.0

Constructors

RTSFlags

Fields

  • gcFlags :: GCFlags
  • concurrentFlags :: ConcFlags
  • miscFlags :: MiscFlags
  • debugFlags :: DebugFlags
  • costCentreFlags :: CCFlags
  • profilingFlags :: ProfFlags
  • traceFlags :: TraceFlags
  • tickyFlags :: TickyFlags
  • parFlags :: ParFlags
Instances
Instances details
Show RTSFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> RTSFlags -> ShowS Source

show :: RTSFlags -> String Source

showList :: [RTSFlags] -> ShowS Source

data GiveGCStats Source

Should we produce a summary of the garbage collector statistics after the program has exited?

Since: base-4.8.2.0

Constructors

NoGCStats
CollectGCStats
OneLineGCStats
SummaryGCStats
VerboseGCStats
Instances
Instances details
Enum GiveGCStats

Since: base-4.8.0.0

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

Show GiveGCStats

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> GiveGCStats -> ShowS Source

show :: GiveGCStats -> String Source

showList :: [GiveGCStats] -> ShowS Source

data GCFlags Source

Parameters of the garbage collector.

Since: base-4.8.0.0

Constructors

GCFlags

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
Instances
Instances details
Show GCFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> GCFlags -> ShowS Source

show :: GCFlags -> String Source

showList :: [GCFlags] -> ShowS Source

data ConcFlags Source

Parameters concerning context switching

Since: base-4.8.0.0

Constructors

ConcFlags

Fields

  • ctxtSwitchTime :: RtsTime
  • ctxtSwitchTicks :: Int
Instances
Instances details
Show ConcFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> ConcFlags -> ShowS Source

show :: ConcFlags -> String Source

showList :: [ConcFlags] -> ShowS Source

data MiscFlags Source

Miscellaneous parameters

Since: base-4.8.0.0

Constructors

MiscFlags

Fields

  • tickInterval :: RtsTime
  • installSignalHandlers :: Bool
  • installSEHHandlers :: Bool
  • generateCrashDumpFile :: Bool
  • generateStackTrace :: Bool
  • machineReadable :: Bool
  • disableDelayedOsMemoryReturn :: Bool
  • internalCounters :: Bool
  • linkerAlwaysPic :: Bool
  • linkerMemBase :: Word

    address to ask the OS for memory for the linker, 0 ==> off

Instances
Instances details
Show MiscFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> MiscFlags -> ShowS Source

show :: MiscFlags -> String Source

showList :: [MiscFlags] -> ShowS Source

data DebugFlags Source

Flags to control debugging output & extra checking in various subsystems.

Since: base-4.8.0.0

Constructors

DebugFlags

Fields

  • scheduler :: Bool
    s
  • interpreter :: Bool
    i
  • weak :: Bool
    w
  • gccafs :: Bool
    G
  • gc :: Bool
    g
  • nonmoving_gc :: Bool
    n
  • 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
Show DebugFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> DebugFlags -> ShowS Source

show :: DebugFlags -> String Source

showList :: [DebugFlags] -> ShowS Source

data DoCostCentres Source

Should the RTS produce a cost-center summary?

Since: base-4.8.2.0

Constructors

CostCentresNone
CostCentresSummary
CostCentresVerbose
CostCentresAll
CostCentresJSON
Instances
Instances details
Enum DoCostCentres

Since: base-4.8.0.0

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

Show DoCostCentres

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> DoCostCentres -> ShowS Source

show :: DoCostCentres -> String Source

showList :: [DoCostCentres] -> ShowS Source

data CCFlags Source

Parameters pertaining to the cost-center profiler.

Since: base-4.8.0.0

Constructors

CCFlags

Fields

  • doCostCentres :: DoCostCentres
  • profilerTicks :: Int
  • msecsPerTick :: Int
Instances
Instances details
Show CCFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> CCFlags -> ShowS Source

show :: CCFlags -> String Source

showList :: [CCFlags] -> ShowS Source

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
Instances
Instances details
Enum DoHeapProfile

Since: base-4.8.0.0

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

Show DoHeapProfile

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> DoHeapProfile -> ShowS Source

show :: DoHeapProfile -> String Source

showList :: [DoHeapProfile] -> ShowS Source

data ProfFlags Source

Parameters of the cost-center profiler

Since: base-4.8.0.0

Constructors

ProfFlags

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
Instances
Instances details
Show ProfFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> ProfFlags -> ShowS Source

show :: ProfFlags -> String Source

showList :: [ProfFlags] -> ShowS Source

data DoTrace Source

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 stderr

Instances
Instances details
Enum DoTrace

Since: base-4.8.0.0

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

Show DoTrace

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> DoTrace -> ShowS Source

show :: DoTrace -> String Source

showList :: [DoTrace] -> ShowS Source

data TraceFlags Source

Parameters pertaining to event tracing

Since: base-4.8.0.0

Constructors

TraceFlags

Fields

  • tracing :: DoTrace
  • timestamp :: Bool

    show timestamp in stderr output

  • traceScheduler :: Bool

    trace scheduler events

  • traceGc :: Bool

    trace GC events

  • traceNonmovingGc :: Bool

    trace nonmoving GC heap census samples

  • 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
Show TraceFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> TraceFlags -> ShowS Source

show :: TraceFlags -> String Source

showList :: [TraceFlags] -> ShowS Source

data TickyFlags Source

Parameters pertaining to ticky-ticky profiler

Since: base-4.8.0.0

Constructors

TickyFlags

Fields

  • showTickyStats :: Bool
  • tickyFile :: Maybe FilePath
Instances
Instances details
Show TickyFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> TickyFlags -> ShowS Source

show :: TickyFlags -> String Source

showList :: [TickyFlags] -> ShowS Source

data ParFlags Source

Parameters pertaining to parallelism

Since: base-4.8.0.0

Constructors

ParFlags

Fields

  • nCapabilities :: Word32
  • migrate :: Bool
  • maxLocalSparks :: Word32
  • parGcEnabled :: Bool
  • parGcGen :: Word32
  • parGcLoadBalancingEnabled :: Bool
  • parGcLoadBalancingGen :: Word32
  • parGcNoSyncWithIdle :: Word32
  • parGcThreads :: Word32
  • setAffinity :: Bool
Instances
Instances details
Show ParFlags

Since: base-4.8.0.0

Instance details

Defined in GHC.RTS.Flags

Methods

showsPrec :: Int -> ParFlags -> ShowS Source

show :: ParFlags -> String Source

showList :: [ParFlags] -> ShowS Source

getRTSFlags :: IO RTSFlags Source

getGCFlags :: IO GCFlags Source

getConcFlags :: IO ConcFlags Source

getMiscFlags :: IO MiscFlags Source

getDebugFlags :: IO DebugFlags Source

getCCFlags :: IO CCFlags Source

getProfFlags :: IO ProfFlags Source

getTraceFlags :: IO TraceFlags Source

getTickyFlags :: IO TickyFlags Source

getParFlags :: IO ParFlags Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/base-4.14.1.0/GHC-RTS-Flags.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API