1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2005
5 * Statistics and timing-related functions.
7 * ---------------------------------------------------------------------------*/
14 extern void stat_startInit(void);
15 extern void stat_endInit(void);
17 extern void stat_startGC(void);
18 extern void stat_endGC (lnat alloc, lnat collect, lnat live,
19 lnat copied, lnat scavd_copied, lnat gen);
22 extern void stat_startRP(void);
23 extern void stat_endRP(nat,
28 #endif /* PROFILING */
30 #if defined(PROFILING) || defined(DEBUG)
31 extern void stat_startHeapCensus(void);
32 extern void stat_endHeapCensus(void);
35 extern void stat_startExit(void);
36 extern void stat_endExit(void);
38 extern void stat_exit(int alloc);
39 extern void stat_workerStop(void);
41 extern void initStats(void);
43 extern double mut_user_time_during_GC(void);
44 extern double mut_user_time(void);
47 extern double mut_user_time_during_RP(void);
48 extern double mut_user_time_during_heap_census(void);
49 #endif /* PROFILING */
51 extern void statDescribeGens( void );
52 extern HsInt64 getAllocations( void );
54 extern void stat_getTimes ( long *currentElapsedTime,
55 long *currentUserTime,
56 long *elapsedGCTime );