diff options
Diffstat (limited to 'rts/Timer.c')
-rw-r--r-- | rts/Timer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/Timer.c b/rts/Timer.c index bf7240b96a..9136c60f20 100644 --- a/rts/Timer.c +++ b/rts/Timer.c @@ -76,11 +76,13 @@ handle_tick(int unused STG_UNUSED) // but only if we're not profiling (e.g. passed -h or -p RTS // flags). If we are profiling we need to keep the timer active // so that samples continue to be collected. -#ifndef PROFILING +#ifdef PROFILING if (!(RtsFlags.ProfFlags.doHeapProfile || RtsFlags.CcFlags.doCostCentres)) { stopTimer(); } +#else + stopTimer(); #endif } } else { |