Stats.h 1.41 KB
Newer Older
1
/* -----------------------------------------------------------------------------
sof's avatar
sof committed
2
 * $Id: Stats.h,v 1.17 2002/02/06 01:21:41 sof Exp $
3 4
 *
 * (c) The GHC Team, 1998-1999
5 6 7 8 9
 *
 * Statistics and timing-related functions.
 *
 * ---------------------------------------------------------------------------*/

10 11
extern void      stat_startInit(void);
extern void      stat_endInit(void);
12

13
extern void      stat_startGC(void);
14 15
extern void      stat_endGC(lnat alloc, lnat collect, lnat live, 
			    lnat copied, lnat gen);
16

17
#ifdef PROFILING
18 19 20 21 22
extern void      stat_startRP(void);
extern void      stat_endRP(nat, 
#ifdef DEBUG_RETAINER
                            nat, int, 
#endif
23
                            double);
24
#endif // PROFILING
25

26 27 28 29 30
#if defined(PROFILING) || defined(DEBUG)
extern void      stat_startHeapCensus(void);
extern void      stat_endHeapCensus(void);
#endif

31 32 33
extern void      stat_startExit(void);
extern void      stat_endExit(void);

34 35 36
extern void      stat_exit(int alloc);
extern void      stat_workerStop(void);

37
extern void      initStats(void);
38

39
extern double    mut_user_time_during_GC(void);
40 41
extern double    mut_user_time(void);

42 43
#ifdef PROFILING
extern double    mut_user_time_during_RP(void);
44
extern double    mut_user_time_during_heap_census(void);
45
#endif // PROFILING
46

47
extern void      statDescribeGens( void );
48
extern HsInt     getAllocations( void );
sof's avatar
sof committed
49

sof's avatar
sof committed
50
#if defined(SMP)
sof's avatar
sof committed
51 52
extern long int  stat_getElapsedTime ( void );
#endif