X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsStartup.c;h=cdb45c60f2ca68c385d0691c8ddfeca9f5e28998;hb=60610640fdf2f9b037f2d323f3e1127849e76028;hp=951b07fab2ced78a87622f8d0d8b2de1ddbb9edb;hpb=44f8b8bca3d9c6ac45934daa6b74c1e6307582ea;p=ghc-hetmet.git diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 951b07f..cdb45c6 100644 --- a/rts/RtsStartup.c +++ b/rts/RtsStartup.c @@ -246,6 +246,7 @@ hs_init(int *argc, char **argv[]) initProfiling1(); /* start the virtual timer 'subsystem'. */ + initTimer(); startTimer(); /* Initialise the stats department */ @@ -409,6 +410,7 @@ hs_exit_(rtsBool wait_foreign) /* stop the ticker */ stopTimer(); + exitTimer(); /* reset the standard file descriptors to blocking mode */ resetNonBlockingFd(0); @@ -478,9 +480,8 @@ hs_exit_(rtsBool wait_foreign) reportCCSProfiling(); #endif - freeProfiling1(); - endProfiling(); + freeProfiling1(); #ifdef PROFILING // Originally, this was in report_ccs_profiling(). Now, retainer