HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-internal-10.0.0Haskell2010

GHC.Internal.Profiling

  • 6 values

Cost Centre Profiling

2 declarations
valuestartProfTimer :: IO ()
#

Start attributing ticks to cost centres. This is called by the RTS on startup but can be disabled using the rts flag --no-automatic-time-samples.

valuestopProfTimer :: IO ()
#

Stop attributing ticks to cost centres. Allocations will still be attributed.

Heap Profiling

3 declarations
valuestartHeapProfTimer :: IO ()
#

Start heap profiling. This is called normally by the RTS on start-up, but can be disabled using the rts flag --no-automatic-heap-samples.

Note: This won't do anything unless you also specify a profiling mode on the command line using the normal RTS options.

valuestopHeapProfTimer :: IO ()
#

Stop heap profiling.

Note: This won't do anything unless you also specify a profiling mode on the command line using the normal RTS options.

valuerequestHeapCensus :: IO ()
#

Request a heap census on the next context switch. The census can be requested whether or not the heap profiling timer is running.

Note: This won't do anything unless you also specify a profiling mode on the command line using the normal RTS options.

Ticky counters (eventlog)

1 declaration

Request ticky counter samples to be written to the eventlog.

Note: This won't do anything unless you have specified RTS options on the command line to log ticky samples to the eventlog.