1 /* -----------------------------------------------------------------------------
2 * $Id: Stats.h,v 1.14 2001/11/26 16:54:22 simonmar Exp $
4 * (c) The GHC Team, 1998-1999
6 * Statistics and timing-related functions.
8 * ---------------------------------------------------------------------------*/
10 extern void stat_startInit(void);
11 extern void stat_endInit(void);
13 extern void stat_startGC(void);
14 extern void stat_endGC(lnat alloc, lnat collect, lnat live,
15 lnat copied, lnat gen);
18 extern void stat_startRP(void);
19 extern void stat_endRP(nat,
26 #if defined(PROFILING) || defined(DEBUG)
27 extern void stat_startHeapCensus(void);
28 extern void stat_endHeapCensus(void);
31 extern void stat_startExit(void);
32 extern void stat_endExit(void);
34 extern void stat_exit(int alloc);
35 extern void stat_workerStop(void);
37 extern void initStats(void);
39 extern double mut_user_time_during_GC(void);
40 extern double mut_user_time(void);
43 extern double mut_user_time_during_RP(void);
44 extern double mut_user_time_during_heap_census(void);
47 extern void statDescribeGens( void );
48 extern HsInt getAllocations( void );