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

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleghc-experimental-9.1401.0Haskell2010

GHC.Stats.Experimental

This module provides access to internal garbage collection and memory usage statistics. These statistics are not available unless a program is run with the -T RTS flag.

The API of this module is unstable and is coupled to GHC's internals. As such if you depend on it, you should expect to follow GHC's releases. This API could change without warning.

  • 3 types
  • 2 values

Runtime statistics

5 declarations
datadata RTSStats
#

Statistics about runtime activity since the start of the program. This is a mirror of the C struct RTSStats in RtsAPI.h

Constructors

Instances4Read, Show, Generic, Rep
datadata GCDetails
#

Statistics about a single GC. This is a mirror of the C struct GCDetails in RtsAPI.h, with the field prefixed with gc_ to avoid collisions with RTSStats.

Constructors

Instances4Read, Show, Generic, Rep
typetype RtsTime = Int64
#

Time values from the RTS, using a fixed resolution of nanoseconds.