summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/Proftimer.c8
-rw-r--r--rts/Proftimer.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/rts/Proftimer.c b/rts/Proftimer.c
index 569f087bb4..7ee32f835c 100644
--- a/rts/Proftimer.c
+++ b/rts/Proftimer.c
@@ -25,21 +25,21 @@ static int ticks_to_heap_profile;
// Time for a heap profile on the next context switch
rtsBool performHeapProfile;
-#ifdef PROFILING
-
void
stopProfTimer( void )
{
+#ifdef PROFILING
do_prof_ticks = rtsFalse;
+#endif
}
void
startProfTimer( void )
{
+#ifdef PROFILING
do_prof_ticks = rtsTrue;
-}
-
#endif
+}
void
stopHeapProfTimer( void )
diff --git a/rts/Proftimer.h b/rts/Proftimer.h
index 07dffff6b9..2b7646f2b7 100644
--- a/rts/Proftimer.h
+++ b/rts/Proftimer.h
@@ -14,10 +14,8 @@
void initProfTimer ( void );
void handleProfTick ( void );
-#ifdef PROFILING
void stopProfTimer ( void );
void startProfTimer ( void );
-#endif
void stopHeapProfTimer ( void );
void startHeapProfTimer ( void );