diff options
Diffstat (limited to 'rts/Profiling.h')
-rw-r--r-- | rts/Profiling.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/rts/Profiling.h b/rts/Profiling.h new file mode 100644 index 0000000000..d968349a52 --- /dev/null +++ b/rts/Profiling.h @@ -0,0 +1,39 @@ +/* ----------------------------------------------------------------------------- + * + * (c) The GHC Team, 1998-2005 + * + * Support for profiling + * + * ---------------------------------------------------------------------------*/ + +#ifndef PROFILING_H +#define PROFILING_H + +#include <stdio.h> + +#if defined(PROFILING) || defined(DEBUG) +void initProfiling1 ( void ); +void initProfiling2 ( void ); +void endProfiling ( void ); + +extern FILE *prof_file; +extern FILE *hp_file; +#endif + +#ifdef PROFILING + +void gen_XML_logfile ( void ); +void reportCCSProfiling ( void ); + +void PrintNewStackDecls ( void ); + +extern void fprintCCS( FILE *f, CostCentreStack *ccs ); +extern void fprintCCS_stderr( CostCentreStack *ccs ); + +#ifdef DEBUG +extern void debugCCS( CostCentreStack *ccs ); +#endif + +#endif + +#endif /* PROFILING_H */ |