X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FProftimer.c;h=ad5bbd92072c7235f9b955d5c0784e1a71ab4e5f;hb=034de91049369e8a04022677b6a9a8f289ab278b;hp=077dc3f9f201463e41ac5bf78eca6dfe993014d8;hpb=7f309f1c021e7583f724cce599ce2dd3c439361b;p=ghc-hetmet.git diff --git a/ghc/rts/Proftimer.c b/ghc/rts/Proftimer.c index 077dc3f..ad5bbd9 100644 --- a/ghc/rts/Proftimer.c +++ b/ghc/rts/Proftimer.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Proftimer.c,v 1.3 1999/02/05 16:02:48 simonm Exp $ + * $Id: Proftimer.c,v 1.5 1999/08/25 16:11:49 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -16,8 +16,6 @@ #include "Itimer.h" #include "Proftimer.h" -lnat total_ticks = 0; - nat current_interval = 1; /* Current interval number -- stored in AGE */ @@ -27,20 +25,10 @@ nat previous_ticks = 0; /* ticks in previous intervals */ nat current_ticks = 0; /* ticks in current interval */ void -initProfTimer(nat ms) -{ - if (initialize_virtual_timer(ms)) { - fflush(stdout); - fprintf(stderr, "Can't initialize virtual timer.\n"); - stg_exit(EXIT_FAILURE); - } -}; - -void stopProfTimer(void) { /* Stops time profile */ if (time_profiling) { - initProfTimer(0); + do_prof_ticks = rtsFalse; } }; @@ -48,15 +36,8 @@ void startProfTimer(void) { /* Starts time profile */ if (time_profiling) { - initProfTimer(TICK_MILLISECS); + do_prof_ticks = rtsTrue; } }; -void -handleProfTick(void) -{ - CCS_TICK(CCCS); - total_ticks++; -}; - #endif /* PROFILING */