diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-08-10 22:26:51 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-08-10 22:26:51 +0100 |
commit | cb07cb7df2cac23d1b4a132f98cf427a755e5f5d (patch) | |
tree | 626cbaf9016d03575446d0f69364d8f1f6ba97c9 /rts/Proftimer.c | |
parent | 415598b232f6664fb4da8321f5f578405af245de (diff) | |
download | haskell-cb07cb7df2cac23d1b4a132f98cf427a755e5f5d.tar.gz |
Always define startProfTimer and stopProfTimer
This allows us to provide access to them in the base library.
Diffstat (limited to 'rts/Proftimer.c')
-rw-r--r-- | rts/Proftimer.c | 8 |
1 files changed, 4 insertions, 4 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 ) |