X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FStats.c;h=248b0af58ab71e8fe36b580eed30f3f2a7b32fa3;hb=45c35148be308b3290f1c14240d406f1cb1af166;hp=f0f61b25b472cd98d4a6a1d8e244d6dad10476f9;hpb=bd78c23d9f195c2b62b7788f8506ac54d07772e0;p=ghc-hetmet.git diff --git a/rts/Stats.c b/rts/Stats.c index f0f61b2..248b0af 100644 --- a/rts/Stats.c +++ b/rts/Stats.c @@ -75,6 +75,11 @@ Ticks stat_getElapsedGCTime(void) return GCe_tot_time; } +Ticks stat_getElapsedTime(void) +{ + return getProcessElapsedTime() - ElapsedTimeStart; +} + /* mut_user_time_during_GC() and mut_user_time() * * The former function can be used to get the current mutator time @@ -532,6 +537,9 @@ stat_exit(int alloc) statsFlush(); statsClose(); } + if (GC_coll_times) + stgFree(GC_coll_times); + GC_coll_times = NULL; } /* -----------------------------------------------------------------------------