[project @ 1999-09-16 12:29:55 by simonmar]
authorsimonmar <unknown>
Thu, 16 Sep 1999 12:29:55 +0000 (12:29 +0000)
committersimonmar <unknown>
Thu, 16 Sep 1999 12:29:55 +0000 (12:29 +0000)
Fix for DEBUG && !PROFILING

ghc/rts/ProfHeap.c
ghc/rts/ProfRts.h

index 2f28e58..1cbf43f 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $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)
 {
index 870786c..883672f 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $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 );