diff options
author | Duncan Coutts <duncan@well-typed.com> | 2012-02-06 12:22:18 +0000 |
---|---|---|
committer | Duncan Coutts <duncan@well-typed.com> | 2012-04-04 19:10:44 +0100 |
commit | 65aaa9b2715c5245838123f3a0fa5d92e0a66bce (patch) | |
tree | c590a78588274f19285965d7b5cbd3b051a9329a /rts/Stats.h | |
parent | cd930da1145a0d6094e5b5380034e80d002d5b9a (diff) | |
download | haskell-65aaa9b2715c5245838123f3a0fa5d92e0a66bce.tar.gz |
Add new eventlog events for various heap and GC statistics
They cover much the same info as is available via the GHC.Stats module
or via the '+RTS -s' textual output, but via the eventlog and with a
better sampling frequency.
We have three new generic heap info events and two very GHC-specific
ones. (The hope is the general ones are usable by other implementations
that use the same eventlog system, or indeed not so sensitive to changes
in GHC itself.)
The general ones are:
* total heap mem allocated since prog start, on a per-HEC basis
* current size of the heap (MBlocks reserved from OS for the heap)
* current size of live data in the heap
Currently these are all emitted by GHC at GC time (live data only at
major GC).
The GHC specific ones are:
* an event giving various static heap paramaters:
* number of generations (usually 2)
* max size if any
* nursary size
* MBlock and block sizes
* a event emitted on each GC containing:
* GC generation (usually just 0,1)
* total bytes copied
* bytes lost to heap slop and fragmentation
* the number of threads in the parallel GC (1 for serial)
* the maximum number of bytes copied by any par GC thread
* the total number of bytes copied by all par GC threads
(these last three can be used to calculate an estimate of the
work balance in parallel GCs)
Diffstat (limited to 'rts/Stats.h')
-rw-r--r-- | rts/Stats.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/Stats.h b/rts/Stats.h index 83b2cb6998..63a1801236 100644 --- a/rts/Stats.h +++ b/rts/Stats.h @@ -19,9 +19,9 @@ void stat_startInit(void); void stat_endInit(void); void stat_startGC(struct gc_thread_ *gct); -void stat_endGC (struct gc_thread_ *gct, lnat alloc, lnat live, - lnat copied, nat gen, - lnat max_copied, lnat avg_copied, lnat slop); +void stat_endGC (Capability *cap, struct gc_thread_ *gct, + lnat alloc, lnat live, lnat copied, lnat slop, nat gen, + nat n_gc_threads, lnat par_max_copied, lnat par_tot_copied); void stat_gcWorkerThreadStart (struct gc_thread_ *gct); void stat_gcWorkerThreadDone (struct gc_thread_ *gct); |