Skip to content
Snippets Groups Projects
Commit cadc82fc authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-09-16 12:29:55 by simonmar]

Fix for DEBUG && !PROFILING
parent 3b5c5b4d
No related merge requests found
/* -----------------------------------------------------------------------------
* $Id: ProfHeap.c,v 1.1 1999/09/15 13:46:28 simonmar Exp $
* $Id: ProfHeap.c,v 1.2 1999/09/16 12:29:55 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -33,6 +33,18 @@ static void fprint_data(FILE *fp);
char prof_filename[128]; /* urk */
FILE *prof_file;
#ifdef DEBUG_HEAP_PROF
void initProfiling( void )
{
initHeapProfiling();
}
void endProfiling( void )
{
endHeapProfiling();
}
#endif /* DEBUG_HEAP_PROF */
nat
initHeapProfiling(void)
{
......
/* -----------------------------------------------------------------------------
* $Id: ProfRts.h,v 1.5 1999/09/15 13:45:18 simonmar Exp $
* $Id: ProfRts.h,v 1.6 1999/09/16 12:29:55 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -7,6 +7,11 @@
*
* ---------------------------------------------------------------------------*/
#if defined(PROFILING) || defined(DEBUG)
void initProfiling ( void );
void endProfiling ( void );
#endif
#ifdef PROFILING
void report_ccs_profiling ( void );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment