HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebase-4.20.2.0Haskell2010

GHC.Profiling

  • 5 values
  • Packagebase-4.20.2.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceProfiling.hs

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.