1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-1999
5 * Statistics and timing-related functions.
7 * ---------------------------------------------------------------------------*/
9 extern void stat_startInit(void);
10 extern void stat_endInit(void);
12 extern void stat_startGC(void);
13 extern void stat_endGC(lnat alloc, lnat collect, lnat live,
14 lnat copied, lnat gen);
17 extern void stat_startRP(void);
18 extern void stat_endRP(nat,
25 #if defined(PROFILING) || defined(DEBUG)
26 extern void stat_startHeapCensus(void);
27 extern void stat_endHeapCensus(void);
30 extern void stat_startExit(void);
31 extern void stat_endExit(void);
33 extern void stat_exit(int alloc);
34 extern void stat_workerStop(void);
36 extern void initStats(void);
38 extern double mut_user_time_during_GC(void);
39 extern double mut_user_time(void);
42 extern double mut_user_time_during_RP(void);
43 extern double mut_user_time_during_heap_census(void);
46 extern void statDescribeGens( void );
47 extern HsInt64 getAllocations( void );
50 extern long int stat_getElapsedTime ( void );