summaryrefslogtreecommitdiff
path: root/rts/Profiling.h
blob: 3a4184fba68e5ba47ffd2b7d8531afc2737c4763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2005
 *
 * Support for profiling
 *
 * ---------------------------------------------------------------------------*/

#ifndef PROFILING_H
#define PROFILING_H

#include <stdio.h>

#include "BeginPrivate.h"

void initProfiling1 (void);
void freeProfiling1 (void);
void initProfiling2 (void);
void endProfiling   (void);

extern FILE *prof_file;
extern FILE *hp_file;

#ifdef PROFILING

void gen_XML_logfile    ( void );
void reportCCSProfiling ( void );

void PrintNewStackDecls ( void );

void fprintCCS( FILE *f, CostCentreStack *ccs );
void fprintCCS_stderr( CostCentreStack *ccs );

#ifdef DEBUG
void debugCCS( CostCentreStack *ccs );
#endif

#endif

#include "EndPrivate.h"

#endif /* PROFILING_H */