HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulebase-4.22.0.0Haskell2010

GHC.Profiling

Contents
  1. Cost Centre Profiling
  2. Heap Profiling
Synopsis
  • Packagebase-4.22.0.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceProfiling.hs

Cost Centre Profiling

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

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.

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.

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.