X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FTask.h;h=cc450a74a16cd4d016d0b9c246efe496b52c8dd3;hp=ca71d2809a46b9c0a2f75bf0d13ddb3c3b8cd549;hb=a91cc8496bf4ea7fe1e3ad9d97836152f3939ffa;hpb=90d88088ee8b3697ce68f7b1e07506bc4f33687d diff --git a/rts/Task.h b/rts/Task.h index ca71d28..cc450a7 100644 --- a/rts/Task.h +++ b/rts/Task.h @@ -190,7 +190,13 @@ INLINE_HEADER void taskEnter (Task *task); // mainly for stats-gathering purposes. // Requires: sched_mutex. // -void taskStop (Task *task); +void workerTaskStop (Task *task); + +// Record the time spent in this Task. +// This is called by workerTaskStop() but not by boundTaskExiting(), +// because it would impose an extra overhead on call-in. +// +void taskTimeStamp (Task *task); // Put the task back on the free list, mark it stopped. Used by // forkProcess().