• Simon Marlow's avatar
    Overhaul GC stats · 24e6594c
    Simon Marlow authored
    Visible API changes:
    * The C struct `GCDetails` gives the stats about a single GC.  This is
      passed to the `gcDone()` callback if one is set via the
      RtsConfig. (previously we just passed a collection of values, so this
      is more extensible, at the expense of breaking the existing API)
    * `RTSStats` gives cumulative stats since the start of the program,
      and includes the `GCDetails` for the most recent GC.  This struct
      can be obtained via `getRTSStats()` (the old `getGCStats()` has been
      removed, and `getGCStatsEnabled()` has been renamed to
    * The per-GC stats and cumulative stats are now cleanly separated.
    * Inside the RTS we have a top-level `RTSStats` struct to keep all our
      stats in, previously this was just a collection of strangely-named
      variables.  This struct is mostly just copied in `getRTSStats()`, so
      the implementation of that function is a lot shorter.
    * Types are more consistent.  We use a uint64_t byte count f...
RtsAPI.h 16.1 KB