X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FProftimer.c;h=32e5c560737317881e24a9738b64b0d2b7e03c16;hb=2777940384ce4740954062bedd0f6813698fc72a;hp=ce20c491af2705c395b782d322068d01893eb0f6;hpb=93db1991b5cacf8357493a2e17fbbfb485f3205b;p=ghc-hetmet.git diff --git a/rts/Proftimer.c b/rts/Proftimer.c index ce20c49..32e5c56 100644 --- a/rts/Proftimer.c +++ b/rts/Proftimer.c @@ -6,8 +6,6 @@ * * ---------------------------------------------------------------------------*/ -#if defined (PROFILING) - #include "PosixSource.h" #include "Rts.h" @@ -66,9 +64,11 @@ initProfTimer( void ) void handleProfTick(void) { +#ifdef PROFILING if (do_prof_ticks) { CCCS->time_ticks++; } +#endif if (do_heap_prof_ticks) { ticks_to_heap_profile--; @@ -78,5 +78,3 @@ handleProfTick(void) } } } - -#endif /* PROFILING */