[project @ 2004-09-09 21:33:07 by simonpj]
[ghc-hetmet.git] / ghc / rts / Proftimer.c
index 4025395..da8c7b8 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Proftimer.c,v 1.10 2002/07/18 09:12:34 simonmar Exp $
+ * $Id: Proftimer.c,v 1.13 2004/09/03 15:28:37 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
 
 #include "PosixSource.h"
 
-#include <stdio.h>
-
 #include "Rts.h"
 #include "Profiling.h"
-#include "Itimer.h"
+#include "Timer.h"
 #include "Proftimer.h"
 #include "RtsFlags.h"
 
@@ -49,7 +47,8 @@ stopHeapProfTimer( void )
 void
 startHeapProfTimer( void )
 {
-    if (RtsFlags.ProfFlags.doHeapProfile) {
+    if (RtsFlags.ProfFlags.doHeapProfile && 
+       RtsFlags.ProfFlags.profileIntervalTicks > 0) {
        do_heap_prof_ticks = rtsTrue;
     }
 }