HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-experimental-10.0.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.

Contents
  1. Runtime statistics
Synopsis

Runtime statistics

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.